Commit 1be0db47 authored by Hampton Maxwell's avatar Hampton Maxwell Committed by Hampton Maxwell
Browse files

Various cleanups

parent 8bda6546
Loading
Loading
Loading
Loading
+4 −1
Changes for dom/RCTVideo.js: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
  }

@@ -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;
@@ -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