-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Support MultiTrack Audio #199
base: master
Are you sure you want to change the base?
Conversation
Thank you very much for your great work! There's a background that, the feature of switching between multiple audio tracks has also been necessary in KonomiTV. It is an important feature provided in KonomiTV until now, but it has still not been merged or implemented here due to the difficulty of how to design the interface of audio switching. A careful API design becomes necessary which will be provided to the user eventually. It could be better to provide a consistent interface in It should also be better to provide an interface to let the user know or be able to query how much the audio tracks exist inside the input stream, also with some extra information like the codec/profile/samplingRate/bitrate(if known) of each audio track, etc. Then the user could switch to a specific audio track by calling some switching method by providing a reliable audio track index. BTW, in tsukumijima's fork, the audio track switching is seamless and nearly real-time, which can switch very fast without interrupting the playback, and it didn't do the unload and then load again which is unnecessary and will cause a bad experience. |
I believe there could be some cases of switching audio tracks between different audio codecs. This is still impossible in the current version of mpegts.js. The latest specification (and most implementations) of Media Source Extensions has support |
@xqq Thank you for your response and feedback! And, FLV for VOD, sequence header does not send regularly, only first time, I think. |
If FLV(VOD) and reached endOfStream, such case reconnect http stream and fetch data. I think that needs different implementation for live or not. |
@xqq MPEG-TS multitrack support and ChangeType for MSE are implemented, please see it! |
Support MultiTrack Audio.