diff --git a/src/util/environment.ts b/src/util/environment.ts index 9d751eb0..ec4f975d 100644 --- a/src/util/environment.ts +++ b/src/util/environment.ts @@ -73,11 +73,8 @@ export const IS_REQUEST_FULLSCREEN_SUPPORTED = 'requestFullscreen' in document.c export const ARE_CALLS_SUPPORTED = !navigator.userAgent.includes('Firefox'); export const LAYERS_ANIMATION_NAME = IS_ANDROID ? 'slide-fade' : IS_IOS ? 'slide-layers' : 'push-slide'; -const TEST_VIDEO = document.createElement('video'); -export const IS_MOV_SUPPORTED = Boolean( - TEST_VIDEO.canPlayType(VIDEO_MOV_TYPE).replace('no', '') - || IS_IOS, // IOS reports '', but still plays .mov files -); +// `canPlayType(VIDEO_MOV_TYPE)` returns false negative at least for macOS Chrome and iOS Safari +export const IS_MOV_SUPPORTED = true; if (IS_MOV_SUPPORTED) SUPPORTED_VIDEO_CONTENT_TYPES.add(VIDEO_MOV_TYPE);