chromecast - Google cast receiver throwing "Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource' -


we have launched chromecast support on our app , working fine, past few days stopped working(the receiver alway sending buffering status sender , continuously buffering), have used chrome debugging , able find exception in console "uncaught notsupportederror: failed execute 'addsourcebuffer' on 'mediasource': type provided ('video/mp2t; codecs="mp4a.40.2,avc1.77.31"') unsupported." in media_player.js file (on 80th line - according chrome debugger). not able understand why error thrown, our customers started complaining chromecast support not working.

can please guide me through problem.

note: have used custom receiver sample google cast github , modified styling.

we using hls streaming videos: here sample m3u8 file content:

#extm3u #ext-x-version:1 ## created unified streaming platform(version=1.6.9) #ext-x-stream-inf:program-id=1,bandwidth=323376,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=174000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=510996,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=351000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=722996,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=551000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=1078096,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=886000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=1415176,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=1204000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=1743776,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=1514000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=2068136,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=1820000.m3u8 #ext-x-stream-inf:program-id=1,bandwidth=2498496,codecs="mp4a.40.2,avc1.77.31",resolution=1024x576 707eb5bd-dcdf-4f84-b1a3-7cdbd0d4af89-audio=131072-video_eng=2226000.m3u8 

i did saw answer post: is avc1.66.31,mp4a.40.2 supported chromecast device? have different version of avc codec - avc1.77.31 don't know, what's best way working.

note: have posted same question on g+ community, update answer there if find working solution here. thanks.

try replacing codec avc1.77.30

host.processmanifest = function(manifest) {   return manifest.replace(/codecs=\"avc1.77.([0-9]*)/g, 'codecs=\"avc1.77.30'); }; 

Comments