Page 1 of 1

Errors in console

Posted: Tue Oct 01, 2019 7:21 pm
by thefunkyjoint
Hi,

I've noticed that console shows a lot of errors like these :

Uncaught (in promise) NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp4; codecs="avc1.42C01E"') is unsupported. :
Uncaught (in promise) NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('audio/mp4; codecs="mp4a.40.5"') is unsupported. :

Is there a way to disable mp4 / avi loading, in order to avoid these messages ?

Thanks !

Re: Errors in console

Posted: Tue Oct 01, 2019 9:01 pm
by salvadordf
Those errors seem to be caused by unsupported video and audio codecs.

Setting GlobalCEFApp.AutoplayPolicy to appDocumentUserActivationRequired to stop autoplay might be a workaround but building the CEF binaries with proprietary codec support would be a better solution.

Re: Errors in console

Posted: Tue Oct 01, 2019 11:37 pm
by thefunkyjoint
salvadordf wrote: Tue Oct 01, 2019 9:01 pm Those errors seem to be caused by unsupported video and audio codecs.

Setting GlobalCEFApp.AutoplayPolicy to appDocumentUserActivationRequired to stop autoplay might be a workaround but building the CEF binaries with proprietary codec support would be a better solution.
Thanks for the info ; can i set AutoPlayPolicy per TChromium instance, or is it only global ?

Re: Errors in console

Posted: Wed Oct 02, 2019 7:33 am
by salvadordf
I tried to modify the "profile.default_content_setting_values.autoplay" preference to set a custom autoplay value for each TChromium browser but it seems to be ignored.

For now, only the GlobalCEFApp autoplay property works.

Re: Errors in console

Posted: Wed Aug 18, 2021 10:50 pm
by yarockiisergei
thefunkyjoint wrote: Tue Oct 01, 2019 7:21 pm Hi,

I've noticed that console shows a lot of errors like these :

Uncaught (in promise) NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp4; codecs="avc1.42C01E"') is unsupported. :
Uncaught (in promise) NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('audio/mp4; codecs="mp4a.40.5"') is unsupported. :

Is there a way to disable mp4 / avi loading, in order to avoid these messages ?

Thanks !