You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, videojs is really nice, thank you for your all effort to offer a perfect player for community. We use videojs for years and have many positive comment from our clients.
At this moment, we are using multi codec for audio, not only AAC, we also use AC3, E-AC3. Some of these codecs is not widely supported by browsers. For example Chrome window not support AC3, E-AC3.
But unfortunately, function player player.audioTracks() is still return these audio. Then when user select these codecs, player is paused.
So my question is,
1/ In videojs, is there any function/config to only get the supported audio codecs when we call player.audioTracks()?
2/ Or how to detect the codec of audio from the list audio of player.audioTracks()? We will ourself check if codecs is support we will show.
Thank you.
The text was updated successfully, but these errors were encountered:
Regardless, if you want to manually filter the available player.audioTracks you can use the player.audioTracks().removeTrack(trackToRemove) function to remove available audio tracks.
Hello @adrums86 , thanks for your response.
Player not throw any error when switch to un-supported audio codec.
It just loading. And the video tag is paused.
First of all, videojs is really nice, thank you for your all effort to offer a perfect player for community. We use videojs for years and have many positive comment from our clients.
At this moment, we are using multi codec for audio, not only AAC, we also use AC3, E-AC3. Some of these codecs is not widely supported by browsers. For example Chrome window not support AC3, E-AC3.
But unfortunately, function player player.audioTracks() is still return these audio. Then when user select these codecs, player is paused.
You can check a demo here on Chrome on Window:
https://codesandbox.io/p/sandbox/videojs-player-3cvkd4?file=%2Findex.html%3A16%2C83-16%2C105
So my question is,
1/ In videojs, is there any function/config to only get the supported audio codecs when we call player.audioTracks()?
2/ Or how to detect the codec of audio from the list audio of player.audioTracks()? We will ourself check if codecs is support we will show.
Thank you.
The text was updated successfully, but these errors were encountered: