I use vlc plugin.
How to change audio track on live streaming channel?
I tried some code but no luck
<script type="text/javascript">
vlc.audio.track = "2";
</script>
<script type="text/javascript">
vlc.audio.track = 2;
</script>
Maybe some of you know working sentence. Thanks in advance.
Well, I meet same problem. If you know audio Pid it's simple to switch audio track. Code you wrote correct, just replace 2 with correct audio Pid.
var vlc = document.getElementById('vlc');
// Get current track
alert(vlc.audio.track);
// Set track
vlc.audio.track = 88; // be sure that this audio pid exist
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.