From aae5002b2cc9bae26fc2f4ce0164b7a53be99183 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 24 Apr 2024 12:26:25 +0200 Subject: [PATCH] MOBILE-4566 media: Use VideoJS for some formats in Android too --- src/core/singletons/media.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/singletons/media.ts b/src/core/singletons/media.ts index cdf487cac..eebca8793 100644 --- a/src/core/singletons/media.ts +++ b/src/core/singletons/media.ts @@ -54,7 +54,7 @@ export class CoreMedia { * @returns Whether needs conversion. */ static sourceNeedsConversion(source: CoreMediaSource): boolean { - if (!CorePlatform.isIOS()) { + if (!CorePlatform.isMobile()) { return false; } @@ -84,7 +84,7 @@ export class CoreMedia { * @returns Whether JS player should be used. */ static mediaUsesJavascriptPlayer(mediaElement: HTMLVideoElement | HTMLAudioElement): boolean { - if (!CorePlatform.isIOS()) { + if (!CorePlatform.isMobile()) { return false; }