Skip to content

Commit

Permalink
fixed slider not showing up on most recent dv-player-fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Oct 27, 2024
1 parent eeb0fc1 commit 88afd53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,14 +1020,15 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
const AmazonSliderStyle = "height: 1em;background: rgb(221, 221, 221);display: none;width:200px;";
async function Amazon_SpeedSlider(video) {
if (video) {
let alreadySlider = document.querySelector("#videoSpeedSlider");
let alreadySlider = document.querySelector(".dv-player-fullscreen #videoSpeedSlider");
if (!alreadySlider) {
// infobar position for the slider to be added
let position = document.querySelector(".dv-player-fullscreen [class*=infobar-container]")?.firstChild?.lastChild;
console.log("video", position);
if (position) createSlider(video, position, AmazonSliderStyle, "");
} else {
// need to resync the slider with the video sometimes
let speed = document.querySelector("#videoSpeed");
let speed = document.querySelector(".dv-player-fullscreen #videoSpeed");
if (video.playbackRate != alreadySlider.value / 10) {
video.playbackRate = alreadySlider.value / 10;
}
Expand Down

0 comments on commit 88afd53

Please sign in to comment.