Loading dom/RCTVideo.js +4 −1 Changes for dom/RCTVideo.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class RCTVideo extends RCTView { this.muted = false; this.rate = 1.0; this.volume = 1.0; this.videoElement.autoplay = true; this.childContainer.appendChild(this.videoElement); } Loading Loading @@ -97,7 +98,7 @@ class RCTVideo extends RCTView { if (value) { this.videoElement.pause(); } else { this.playPromise = this.videoElement.play().catch(console.error); this.playPromise = this.videoElement.play(); } }); this._paused = value; Loading @@ -106,8 +107,10 @@ class RCTVideo extends RCTView { set progressUpdateInterval(value: number) { this._progressUpdateInterval = value; this.stopProgressTimer(); if (!this._paused) { this.startProgressTimer(); } } set rate(value: number) { this.videoElement.defaultPlaybackRate = value; // playbackRate doesn't work on Chrome Loading Loading
dom/RCTVideo.js +4 −1 Changes for dom/RCTVideo.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class RCTVideo extends RCTView { this.muted = false; this.rate = 1.0; this.volume = 1.0; this.videoElement.autoplay = true; this.childContainer.appendChild(this.videoElement); } Loading Loading @@ -97,7 +98,7 @@ class RCTVideo extends RCTView { if (value) { this.videoElement.pause(); } else { this.playPromise = this.videoElement.play().catch(console.error); this.playPromise = this.videoElement.play(); } }); this._paused = value; Loading @@ -106,8 +107,10 @@ class RCTVideo extends RCTView { set progressUpdateInterval(value: number) { this._progressUpdateInterval = value; this.stopProgressTimer(); if (!this._paused) { this.startProgressTimer(); } } set rate(value: number) { this.videoElement.defaultPlaybackRate = value; // playbackRate doesn't work on Chrome Loading