Skip to content

Commit

Permalink
Merge pull request igrigorik#636 from asselin/master
Browse files Browse the repository at this point in the history
Fix igrigorik#632 speed display not updating on Amazon video
  • Loading branch information
ChadBailey authored May 17, 2020
2 parents 4178d58 + 0163624 commit 7a025db
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,8 @@ function setupListener() {
log("Speed event propagation blocked", 4);
event.stopImmediatePropagation();
}
var controller = event.target.parentElement.querySelector(
".vsc-controller"
);
var speedIndicator = controller.shadowRoot.querySelector("span");
var video = controller.parentElement.querySelector("video");
var video = event.target;
var speedIndicator = video.vsc.speedIndicator;
var src = video.currentSrc;
var speed = video.playbackRate.toFixed(2);

Expand Down

0 comments on commit 7a025db

Please sign in to comment.