mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-30 20:33:55 +02:00
[WIP] Add majority of logic for HLS reading support
This commit is contained in:
@@ -15,6 +15,7 @@ import { assert, Rotation } from './misc';
|
||||
import { TrackType } from './output';
|
||||
import { EncodedPacket, PacketType } from './packet';
|
||||
import { TrackDisposition } from './metadata';
|
||||
import { ManifestInputVariant } from './manifest-input-variant';
|
||||
|
||||
/**
|
||||
* Contains aggregate statistics about the encoded packets of a track.
|
||||
@@ -39,6 +40,8 @@ export interface InputTrackBacking {
|
||||
getLanguageCode(): string;
|
||||
getTimeResolution(): number;
|
||||
getDisposition(): TrackDisposition;
|
||||
getVariant(): ManifestInputVariant | null;
|
||||
|
||||
getFirstTimestamp(): Promise<number>;
|
||||
computeDuration(): Promise<number>;
|
||||
|
||||
@@ -146,6 +149,10 @@ export abstract class InputTrack {
|
||||
return this._backing.getDisposition();
|
||||
}
|
||||
|
||||
get variant() {
|
||||
return this._backing.getVariant();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the start timestamp of the first packet of this track, in seconds. While often near zero, this value
|
||||
* may be positive or even negative. A negative starting timestamp means the track's timing has been offset. Samples
|
||||
|
||||
Reference in New Issue
Block a user