set plyr default options

This commit is contained in:
La macchina desiderante 2024-05-23 21:05:23 +02:00
parent 6cac83323d
commit c6abf4defd
1 changed files with 15 additions and 1 deletions

View File

@ -27,7 +27,21 @@ const PlyrJS: React.FC<Props> = (props) => {
const plyrProps = {
source: { type: 'video', sources: data.srcSet }, // https://github.com/sampotts/plyr#the-source-setter
// options: undefined, // https://github.com/sampotts/plyr#options
options: {
controls: [
'play', // Play/pause playback
'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
'pip', // Picture-in-picture (currently Safari only)
'airplay', // Airplay (currently Safari only)
'fullscreen', // Toggle fullscreen
]
}, // https://github.com/sampotts/plyr#options
}
return (