This commit is contained in:
zeppi 2021-07-19 12:54:05 -04:00 committed by jessopb
parent 9b03f5a1d0
commit 50875566ad

View file

@ -58,14 +58,14 @@ type Props = {
allowPreRoll: ?boolean, allowPreRoll: ?boolean,
}; };
type VideoJSOptions = { // type VideoJSOptions = {
controls: boolean, // controls: boolean,
preload: string, // preload: string,
playbackRates: Array<number>, // playbackRates: Array<number>,
responsive: boolean, // responsive: boolean,
poster?: string, // poster?: string,
muted?: boolean, // muted?: boolean,
}; // };
const videoPlaybackRates = [0.25, 0.5, 0.75, 1, 1.1, 1.25, 1.5, 1.75, 2]; const videoPlaybackRates = [0.25, 0.5, 0.75, 1, 1.1, 1.25, 1.5, 1.75, 2];
@ -74,7 +74,7 @@ const IS_IOS =
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&
!window.MSStream; !window.MSStream;
const VIDEO_JS_OPTIONS: VideoJSOptions = { const VIDEO_JS_OPTIONS = {
preload: 'auto', preload: 'auto',
playbackRates: videoPlaybackRates, playbackRates: videoPlaybackRates,
responsive: true, responsive: true,