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:
parent
f2495df615
commit
4b6e4db7cd
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue