Disable chapters for mobile for now...

- Deemed not useful in mobile, unless you have an S-pen that can hover.
- The chapters button (that invokes the chapters popup) would make more sense in Mobile, but we need to deal with the limited controlbar space first (e.g. overflow menu system)
This commit is contained in:
infinite-persistence 2022-05-04 20:38:13 +08:00 committed by Thomas Zarebczan
parent f2495df615
commit 4b6e4db7cd

View file

@ -1,4 +1,6 @@
// @flow
import { platform } from 'util/platform';
const REQUIRED_DELAY_FOR_IOS_MS = 10;
const MIN_SECONDS_BETWEEN_CHAPTERS = 10;
const MIN_CHAPTERS = 3;
@ -148,6 +150,11 @@ function load(player: any, timestampData: TimestampData, duration: number) {
export function parseAndLoad(player: any, claim: StreamClaim) {
console.assert(claim, 'null claim');
if (platform.isMobile()) {
return;
}
const tsData = parse(claim);
const duration = claim?.value?.video?.duration || claim?.value?.audio?.duration;