html5 - Brightcove player on mobile: video is unavailable -


i have issue brightcove player on mobile (html5 mobile fallback of brightcove, on desktop uses own flash player, without issues). loading page video (containing video, without other code) mobile user agents following error in console:

brightcoveplayer_api_ad.js:415 uncaught (in promise) domexception: element  has no supported sources.  setcontent @ brightcoveplayer_api_ad.js:415 loaderror @ brightcoveplayer_api_ad.js:633 showerrormessage @ brightcoveplayer_api_ad.js:461 handlecontenterror @ brightcoveplayer_api_ad.js:430 onmediaerror @ brightcoveplayer_api_ad.js:427 dispatchevent @ brightcoveplayer_api_ad.js:9 redispatch @ brightcoveplayer_api_ad.js:9 dispatchevent @ brightcoveplayer_api_ad.js:9 errorhandler @ brightcoveplayer_api_ad.js:374 g @ brightcoveplayer_api_ad.js:2 dispatch @ brightcoveplayer_api_ad.js:2 @ brightcoveplayer_api_ad.js:2  null:1 http://c.brightcove.com/services/viewer/null 404 (not found)     

video parameters like:

<p> <div style="display:none"></div> <script type="text/javascript" src="http://admin.brightcove.com/js/brightcoveexperiences.js"></script> <script type="text/javascript" src="http://static.example.com/js/brightcove-ad.js?qqq"></script> <object id="myexperience-aaa-play" class="brightcoveexperience"> <param name="bgcolor" value="#ffffff" /> <param name="playerid" value="xxx" /> <param name="playerkey" value="yyy" /> <param name="isvid" value="true" /> <param name="isui" value="true" /> <param name="dynamicstreaming" value="true" /> <param name="@videoplayer" value="zzz" /> <param name="includeapi" value="true" /> <param name="autostart" value="true" /> <param name="templateloadhandler" value="ontemplateload" /> <param name="templatereadyhandler" value="ontemplateready" /> </object></p> <p> 

errors rise in chrome , firefox on mobile user agent, error description can on ios-based user agents, in chrome , firefox. using android or blackberry same error without error description in console, or video-container isn't shown @ all.

any recommendation highly appreciated!

i'm here because i'm revisiting related issue... i'm not huge fan of apis...

anyways first ensure video you're trying deliver has been encoded mobile in "media cloud". take @ using smart player: https://support.brightcove.com/en/video-cloud/docs/delivering-video-html5-and-smart-players meant detect device capability , render flash/html5 appropriate.

the issue i'm having, might run into, on mobile video takes long load gives "video not available" message. since aren't using proper promises i've created own promise chain , using timeout wait video delivery before calling full player initialization. it's hacky , crusty , fails around 5% of time...


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -