Updated player controls

This commit is contained in:
WardPearce
2024-03-18 15:25:07 +13:00
parent 362adafa03
commit bc216b5c50
+18 -1
View File
@@ -36,7 +36,24 @@
const videoElement = document.getElementById('player') as HTMLMediaElement;
player = new Plyr(videoElement);
player = new Plyr(videoElement, {
controls: [
'play-large', // The large play button in the center
'restart', // Restart playback
'rewind', // Rewind by the seek time (default 10 seconds)
'play', // Play/pause playback
'fast-forward', // Fast forward by the seek time (default 10 seconds)
'progress', // The progress bar and scrubber for playback and buffering
'current-time', // The current time of playback
'duration', // The full duration of the media
'mute', // Toggle mute
'volume', // Volume control
'captions', // Toggle captions
'settings', // Settings menu
'download', // Show a download button with a link to either the current source or a custom URL you specify in your options
'fullscreen' // Toggle fullscreen
]
});
const currentCategories = get(sponsorBlockCategories);