phawind111 / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Custom receiver with MPL1.0.0 fails to play HLS master index file if codecs specified as MP3 #694

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Cast HLS master index files with audio codec specified as 
"mp4a.40.34,avc1.4d001e"

What is the expected output? 
Chromecast starts playback

What do you see instead?
Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 
'MediaSource': The type provided ('video/mp2t; 
codecs="mp4a.40.34,avc1.4d001e"') is unsupported.

What version of the product are you using? On what operating system?
Chromecast and MPL1.0.0

Please provide any additional information below.
Stream example — http://nsk9.peers.tv/streaming/1kanal/16/variable.m3u8
Chromecast can play this stream if codecs information is replaced manually in 
method "addSourceBuffer" of media_player.js

According to https://developers.google.com/cast/docs/media
MP3 is supported and actually works in HLS (using 
replace("mp4a.40.34","mp4a.40.2") on codecs )

mp4a.69, mp4a.6B for MP3 doesn't work

Original issue reported on code.google.com by gpini...@gmail.com on 26 Nov 2015 at 11:11

GoogleCodeExporter commented 8 years ago
The problem here is that currently Chrome doesn't recognize mp4a.40.34 as a 
codec id for MP3 codec (see 
http://code.google.com/p/chromium/issues/detail?id=489520), even though that is 
a valid MP3 codec id according to RFC 6381.
I'll see if I can fix this in Chrome and then bring the fix to Chromecast.

Original comment by serv...@chromium.org on 2 Dec 2015 at 2:13

GoogleCodeExporter commented 8 years ago

Original comment by na...@google.com on 2 Dec 2015 at 2:25