mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 20:03:48 +02:00
Add language getter to InputTrack
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user