Release v0.4: Add PornHub support / Server-side streaming / Plyr.js / Video srcset #96
|
@ -27,7 +27,21 @@ const PlyrJS: React.FC<Props> = (props) => {
|
||||||
|
|
||||||
const plyrProps = {
|
const plyrProps = {
|
||||||
source: { type: 'video', sources: data.srcSet }, // https://github.com/sampotts/plyr#the-source-setter
|
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 (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue