Video add in webpage (Html) . below code below version html 5.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&" />
<param name="allowfullscreen" value="true" />
<embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&" allowscriptaccess="always" allowfullscreen="true">
</embed>
</object>
Also some above problem , And as you know, you need Flash for this. Or it is often delivered via JavaScript as well so it is not perfect.
The HTML 5 way Nice, clean, minimal code:
<video width="640" height="360" poster="http://video-js.zencoder.com/oceans-clip.png" controls preload>
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
</video>
<p> Try this page in a modern browser! Or you can <a href="http://video-js.zencoder.com/oceans-clip.mp4">download the video</a> instead.</p>
Solution
HTML5 Video & Audio Player- no video with support format or mime type found? in firefox
Please Create .htaccess files root folder and put here below code
AddType video/mp4 mp4 m4v
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType audio/ogg ogg oga
AddType video/webm webm
The <video> element has several special attributes that can change or enhance its default behavior.<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&" />
<param name="allowfullscreen" value="true" />
<embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&" allowscriptaccess="always" allowfullscreen="true">
</embed>
</object>
Also some above problem , And as you know, you need Flash for this. Or it is often delivered via JavaScript as well so it is not perfect.
The HTML 5 way Nice, clean, minimal code:
<video width="640" height="360" poster="http://video-js.zencoder.com/oceans-clip.png" controls preload>
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
</video>
<p> Try this page in a modern browser! Or you can <a href="http://video-js.zencoder.com/oceans-clip.mp4">download the video</a> instead.</p>
Solution
HTML5 Video & Audio Player- no video with support format or mime type found? in firefox
Please Create .htaccess files root folder and put here below code
AddType video/mp4 mp4 m4v
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType audio/ogg ogg oga
AddType video/webm webm
autoplay* | Tells the browser to immediately start downloading the video and play it as soon as it can. Note that mobile browsers generally do not support this attribute, the user must tap the screen to begin video playback. |
preload | Hint to the browser about whether optimistic downloading of the video itself or its metadata is considered worthwhile. Options are:
|
poster | Provides an image to show before the video loads |
controls* | Shows the default video controls (play, pause, etc) |
height & width | Sets the width and height of the video in CSS pixels |
loop* | Tells the browser to automatically loop the video |
muted* | Mutes the audio from the video |