Hello Svetlin,
The main video stream embeds the prefered audio stream.
This is to preserve compatibility with old Apple devices and many current Android devices.
Because HLS's alternate media tracks capabililty appears in Draft Pantos HTTP Live Streaming N°7 :
https://tools.ietf.org/html/draft-pantos-http-live-streaming-07
It requires HLS version 4 for alternate audio support (09/30/2011) and HLS version 5 for alternate subtitle support (09/22/2012) :
http://www.gpac-licensing.com/2014/12/01/apple-hls-comparing-versions/
So, it means you need at least an Apple device with iOS 6 operating system to play an HLS stream using alternate audio/subtitle.
When HLS stream contains alternate audio tracks, it overrides audio of the main video track. This is how Quicktime player works on iOS and Mac OS X.
So here is the HLS link for old compatibility :
http://sample.vodobox.com/planete_interdite/planete_interdite.m3u8
And here is the HLS link for players with version 5 (and upper) capability :
http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8
This two links use the same video track. Then it consumes less storage on the hosting server and it offers playback for old and new HLS players at the same time.
However the HLS stream with the version 5 should be playable on any old HLS player. Because Draft Pantos says : An Attribute/value pair with an unrecognized AttributeName MUST be ignored by the client. And : Attribute/value pairs of type enumerated-string that contain unrecognized values SHOULD be ignored by the client.
I enjoy to share this sample with your dev team. Hope they'll find it helpfull and interesting for future Viblast player updates.
Best regards
Hi Beloko,
Thank you for the detailed explanation. We suspected that it had something to do with compatibility but now it makes perfect sense.
> I enjoy to share this sample with your dev team. Hope they'll find it helpfull and interesting for future Viblast player updates.
Yes, your feedback is much appreciated. We are working on these issues and will keep you posted about new releases.
Thanks,
Svetlin
Of course Svetlin.
As always I remain attentive to your developments :)
Best regards
Beloko
Hello,
com/viblast_player.php?url=http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8
I'm testing Viblast Player (release 6.36) with an HLS stream having :
. 6 qualities for Adaptive Bitrate
. 2 alternate audio tracks (English and French)
. 3 alternate subtitle tracks (English, English with audio description and French)
This movie plays properly on any iOS devices and Mac OS X operating system. But Viblast Player return this error message "The video could not be loaded, either because the server or network failed or because the format is not supported".
Here is the HLS link :
http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8
And here is my Viblast Player test page :
http://videoplayer.vodobox.
Do I need to setup or develop something special to play multi audio/subtitle streams with your HTML5 player ?
Best regards