
JWPlayer play wrong audio in HLS stream
Hello,
We use JWPlayer to play multi audio HLS streams, but JWPlayer play second (english) audio stream instead first one (german). Is there any way to set primary audio stream?
I send you ffprobe json output as additional information.
{
"streams": [
{
"index": 1,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 4013819930,
"start_time": "44597.999222",
"duration_ts": 1583,
"duration": "0.017589",
"bit_rate": "130500",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 2,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 4013816090,
"start_time": "44597.956556",
"duration_ts": 1583,
"duration": "0.017589",
"bit_rate": "151125",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 3,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "1/50",
"codec_tag_string": "[27][0][0][0]",
"codec_tag": "0x001b",
"width": 720,
"height": 576,
"has_b_frames": 1,
"sample_aspect_ratio": "16:11",
"display_aspect_ratio": "20:11",
"pix_fmt": "yuv420p",
"level": 32,
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/90000",
"start_pts": 4013829646,
"start_time": "44598.107178",
"duration_ts": 1583,
"duration": "0.017589",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
}
],
"format": {
"filename": "http://iptv-pos1.rhone.ch:5555/pl.m3u8?channel=1&key=6pz1tEu6AtGFjtzUW413uT6ZJzyRax&client=joe&sessionid=13003",
"nb_streams": 4,
"nb_programs": 1,
"format_name": "hls,applehttp",
"format_long_name": "Apple HTTP Live Streaming",
"start_time": "44597.956556",
"duration": "0.168211",
"size": "619",
"bit_rate": "29439",
"probe_score": 100
}
}
Thank You,
Vladan