set plyr default options
This commit is contained in:
parent
6cac83323d
commit
c6abf4defd
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue