The other day I was looking at the mobile site for CBS (m.cbs.com) and noticed that they have a bunch of videos you can watch. The way they have it set up is that you click on a link (or image) and the video launches in the default video player of the mobile device. It seems to work great for both Android and iOS.
Does anyone know how you would go about doing (coding) this?
Thanks for you help.
<a href="link-to-video.mp4" onclick="this.play();">click to play video</a>
This seems to work like I want, at least on android. Would this work on other mobile devices as well?
The device will automatically play a video in full-screen mode. No special coding required. I believe I use the HTML5 <video> tags in iOS and YouTube's <embed> tags in Android, and both default to full-screen mode without extra coding.
This topic is now archived. It is frozen and cannot be changed in any way.