diff options
Diffstat (limited to 'web/script/player/track.ts')
-rw-r--r-- | web/script/player/track.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/script/player/track.ts b/web/script/player/track.ts index e64cdf3..59690c3 100644 --- a/web/script/player/track.ts +++ b/web/script/player/track.ts @@ -1,6 +1,7 @@ import { OVar } from "../jshelper/mod.ts"; import { JhlsTrack, TimeRange } from "./jhls.d.ts"; import { BufferRange, Player } from "./player.ts"; +import { EncodingProfileExt } from "./profiles.ts"; const TARGET_BUFFER_DURATION = 15 const MIN_BUFFER_DURATION = 1 @@ -12,6 +13,8 @@ export class PlayerTrack { private loading = new Set<number>() public buffered = new OVar<BufferRange[]>([]) private append_queue: AppendRange[] = [] + public profile = new OVar<EncodingProfileExt | undefined>(undefined) + constructor( private player: Player, private node_id: string, |