tweak muxer

This commit is contained in:
SrGooglo 2025-02-11 16:14:56 +00:00
parent e4a6bfd447
commit afa989b627

View File

@ -95,6 +95,14 @@ export default class TrackInstance {
// support for dash audio streaming // support for dash audio streaming
if (this.manifest.source.endsWith(".mpd")) { if (this.manifest.source.endsWith(".mpd")) {
this.muxerPlayer = MediaPlayer().create() this.muxerPlayer = MediaPlayer().create()
this.muxerPlayer.updateSettings({
streaming: {
buffer: {
resetSourceBuffersForTrackSwitch: true,
useChangeTypeForTrackSwitch: false,
},
},
})
this.muxerPlayer.initialize(this.audio, null, false) this.muxerPlayer.initialize(this.audio, null, false)
this.muxerPlayer.attachSource(this.manifest.source) this.muxerPlayer.attachSource(this.manifest.source)