Picture of Nick Petch
Adapt-contrib_media
by Nick Petch - Tuesday, 30 August 2016, 1:28 AM
 

Hi

I'm just trying to figure out the best way to present iFramed video for all devices. I have opted to use the "Adapt-Contrib-Media"

My challenge is figuring out the "type" field.

 

It asks for a type statement such as video/youtube, however when using a none youtube link from a different hosting platform such as viostream or vimeo, it fails to play giving me a youtube static screen.

https://publish.viostream.com/embed/player?key=otig7obtox55j&width=640&height=360

 

Leaving the "type" filed blank forces the player to display a inline "Download file" text link which goes to the source. 

"video/youtube" works as desired but only with Youtube URL's.

I have checked the WiKi and other documentation but can't seem to find the answer for this one. 

thoughts?

 

Thanks in advance

Nick

 

 

 

Picture of Chuck Lorenz
Re: Adapt-contrib_media
by Chuck Lorenz - Tuesday, 30 August 2016, 9:42 PM
 

Hi Nick,

Not sure if you checked the README for the Media component. It gives examples for a couple of popular video types.

The Media component incorporates MediaElement.js . You can always explore its code on GitHub, but I'd recommend starting with the Media component's source code. See if any of the types listed here is helpful:
https://github.com/adaptlearning/adapt-contrib-media/blob/master/js/mediaelement-and-player.js#L26

- Chuck