Picture of Simon Ray
YouTube video embeded but not showing on mobi
by Simon Ray - Wednesday, 2 December 2015, 11:27 PM
 

Hi all

I have a couple of videos embedded in my course which are hosted on YouTube.  They show ok on a PC or Mac, but not on tablet or mobile.  Has anyone else had this issue?  My code is below:

{
"_id":"c-140",
"_parentId":"b-115",
"_type":"component",
"_component":"media",
"_classes":"",
"_layout":"left",
"title":"Professor Burke Video",
"displayTitle": "",
"body": "",
"instruction": "",
"_media": {
"source": "//www.youtube.com/embed/pBAPapMCRIo",
"type": "video/youtube",
"_isAutoPlay": false,
"_isShowRelated": false,
"_isLoop": false,
"_isKeyboardDisabled": false,
"_isModestBranding": true,
"_isHD": true,
"_isShowClosedCaptions": true,
"_isAutoHideControls": false,
"_isAllowFullscreen": true,
"_progressColor": "red",
"_isLightTheme": true
}

 

Any thoughts welcomed

Simon

Picture of Matt Leathes
Re: YouTube video embeded but not showing on mobi
by Matt Leathes - Thursday, 3 December 2015, 8:55 PM
 

Hi Simon

Change the src URL to:

//www.youtube.com/watch?v=pBAPapMCRIo

The 'embed' style URLs don't seem to work with the player on devices.

Also, you are missing a } but I'm guessing that's probably just a copy-paste error

Picture of Simon Ray
Re: YouTube video embeded but not showing on mobi
by Simon Ray - Thursday, 3 December 2015, 9:51 PM
 

Once again Matt, you've saved the day!

Many thanks.