The fast and easy ways to play video on web page
Internet Explorer has interesting dynsrc parameter for the <img> tag. The code can look like this
<img dynsrc="MyVideo.avi" />
This will show video only by using simple image HTML tag. But, it is not compatible with every web browser. In fact, it works only with Internet Explorer, but it can be satisfactory solution in some scenarios.
<embed src="MyVideo.avi" />
Instead of using of <embed> tag, W3C recommends <object> tag. Here is the code to display WMV video file with <object> HTML tag:
<object height="320px" width="240px" type ="video/x-ms-wmv">
<param name="src" value="http://localhost/MyMovie.wmv" />
</object>
Display video with Media Player active X control in Internet Explorer
<OBJECT width="312px" height="248px" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM name="autoStart" value="False">
<PARAM name="URL" value="./Movie/Pljacka.wmv">
<PARAM name="enabled" value="True">
<PARAM name="balance" value="0">
<PARAM name="currentPosition" value="0">
<PARAM name="enableContextMenu" value="True">
<PARAM name="fullScreen" value="False">
<PARAM name="mute" value="False">
<PARAM name="playCount" value="1">
<PARAM name="rate" value="1">
<PARAM name="stretchToFit" value="False">
<PARAM name="uiMode" value="full">
</OBJECT>
Latest Technology Trainer
And Part time software consultant
Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator