Add language getter to InputTrack

This commit is contained in:
Vanilagy
2025-01-15 20:21:34 +01:00
parent 2bec661985
commit 7b6567fcf0
8 changed files with 49 additions and 3 deletions
+5
View File
@@ -7,6 +7,7 @@ export interface InputTrackBacking {
getCodec(): Promise<MediaCodec | null>;
getFirstTimestamp(): Promise<number>;
computeDuration(): Promise<number>;
getLanguageCode(): Promise<string>;
}
/** @public */
@@ -39,6 +40,10 @@ export abstract class InputTrack {
computeDuration() {
return this._backing.computeDuration();
}
getLanguageCode() {
return this._backing.getLanguageCode();
}
}
export interface InputVideoTrackBacking extends InputTrackBacking {