diff --git a/web/src/components/VideoPlayer.jsx b/web/src/components/VideoPlayer.jsx index 55ca3b212..df75ad5e4 100644 --- a/web/src/components/VideoPlayer.jsx +++ b/web/src/components/VideoPlayer.jsx @@ -8,7 +8,7 @@ import 'videojs-seek-buttons/dist/videojs-seek-buttons.css'; const defaultOptions = { controls: true, - playbackRates: [0.5, 1, 2, 4, 8, 16], + playbackRates: [0.5, 1, 2, 4, 8], fluid: true, }; const defaultSeekOptions = { @@ -18,7 +18,11 @@ const defaultSeekOptions = { export default function VideoPlayer({ children, options, seekOptions = {}, onReady = () => {}, onDispose = () => {} }) { const playerRef = useRef(); - + + if (!videojs.browser.IS_FIREFOX) { + defaultOptions.playbackRates.push(16); + } + useEffect(() => { const player = videojs(playerRef.current, { ...defaultOptions, ...options }, () => { onReady(player);