Search code examples
http-live-streaminggoogle-castreceivergoogle-cast-sdk

Live Audio HLS stream fails to play


we are trying to play a HLS Live stream that is Audio-only. It looks ok spec-wise and we're able to play it on all browsers and native player that we have, but it fails to play on Chromecast.

Url: http://rcavliveaudio.akamaized.net/hls/live/2006635/P-2QMTL0_MTL/playlist.m3u8

Content-Type: vnd.apple.mpegURL

Steps to reproduce Force this content url and content type into the Chromecast player.

Expected To hear audio playing like on any other player we try.

Actual result There is no playback. The master playlist is fetched, the chunk playlist is fetched and the first chunks are fetched, but there is no playback. It stops after a few chunk. The player is stuck in the "processing segment" phase, and it stops.


Solution

  • Please change the Content type to audio/mp4 and set AAC to segment format mediaInfo.hlsSegmentFormat = cast.framework.messages.HlsSegmentFormat.AAC;