Add Playback Rate function

This commit is contained in:
Korbs 2024-12-02 19:14:23 -05:00
parent 2474a3d62e
commit 7dcbb1affa
3 changed files with 22 additions and 3 deletions

View file

@ -4,6 +4,7 @@ const {
Title,
Live,
ShowBackAndForward,
ShowPlaybackRate,
SeekColor = '#2185d0',
PlayerName,
Subtitles
@ -72,6 +73,7 @@ import './Styles/Iconoir.css'
<!-- The requestPictureInPicture() function is not supported in Firefox -->
<button id="vc-pip" onclick={'document.querySelector("#zorn-player-' + PlayerName + ' video").requestPictureInPicture()'}><i class="iconoir-multi-window"></i></button>
{Subtitles ? <button id="vc-subtitles"><i class="iconoir-closed-captions-tag-solid"></i></button> : null}
{ShowPlaybackRate ? <button onclick="PlayerMenu_PlaybackRate()"><i class="iconoir-timer-solid"></i></button> : null}
<button id="vc-fullscreen"><i class="iconoir-enlarge"></i></button>
</div>
</div>

File diff suppressed because one or more lines are too long

View file

@ -337,6 +337,11 @@
}
}
#playback-rate {
flex-direction: row;
min-width: 100px;
}
button#has-switch svg {
width: 24px;
}