html - Embedding video with object tag for self hosted content and player -


i new video player world. want develop mobile browser based video player. know html5 , flash fall different requirement .

the requirement is, using object tag should embed video plays in mobile devices(browser). code highly useful . mandatory use object tag . if swf or compatible mobile browsers..

thanks in advance .

using <object>-tag bad way. why mandatory use? why not go <video>-tag instead? also, <object> deprecated of january 27, 2015.

if file want embed playable phones (such .mp4 file), can use <video>-tag instead.

<video width="500" controls>     <source src="video.mp4" type="video/mp4">     browser not support html5 video. </video> 

if you're embedding .swf file, cannot play on devices no flash support. unable play .swf files natively in chrome on android phone, , don't think ios devices.

if really, really want use <object>-tag well, can wrap inside <video>-tag, this:

<video src="video.mp4" controls>     <object data="flvplayer.swf" type="application/x-shockwave-flash">         <param value="flvplayer.swf" name="movie"/>     </object> </video> 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -