mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
Refactor HLS API: Get rid of specialized Manifest* classes, use Input instead. Add unhydrated InputTracks, InputTrack compatibility, InputTrack queries
This commit is contained in:
+16
-4
@@ -444,6 +444,22 @@ class OggAudioTrackBacking implements InputAudioTrackBacking {
|
||||
return this.bitstream.sampleRate;
|
||||
}
|
||||
|
||||
getGroupId() {
|
||||
return this.getId();
|
||||
}
|
||||
|
||||
getPairingMask() {
|
||||
return 1n;
|
||||
}
|
||||
|
||||
getBitrate() {
|
||||
return null;
|
||||
}
|
||||
|
||||
getAverageBitrate() {
|
||||
return null;
|
||||
}
|
||||
|
||||
getCodec() {
|
||||
return this.bitstream.codecInfo.codec;
|
||||
}
|
||||
@@ -452,10 +468,6 @@ class OggAudioTrackBacking implements InputAudioTrackBacking {
|
||||
return null;
|
||||
}
|
||||
|
||||
getVariant() {
|
||||
return null;
|
||||
}
|
||||
|
||||
async getDecoderConfig(): Promise<AudioDecoderConfig | null> {
|
||||
assert(this.bitstream.codecInfo.codec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user