Adding Videos

Playing a video on the web requires; the file format of video and the plug-in needed by the browser to play the video file. There are many different video formats like AVI, Flash Video, MPEG, etc. but video file format to use is decided on basis of the file size and picture quality. Different formats needs different plug-ins to play the video file and some plug-ins are installed on most PCs than others.

Physical size of video at which it is to be shown, also influence the video format to choose, as showing large video, needs larger video file size. But smaller file downloads faster needing less bandwidth. Hence a balance between a video size to show and video file size is needed.

<object> tag is used to add video to a web page. The type attribute in the <object> tag tells the MIME type and classid attribute tells the plug-in to use as shown

<object classid=”CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6″ id=”player” width=”340″ height=”280″>

<param name=”url” value=”http://www.domain.com/path/to/winmovie.wmv” />

<param name=”src” value=”http://www.domain.com/path/to/winmovie.wmv” />

<param name=”showcontrols” value=”true” />

<param name=”autostart” value=”true” />

</object>

Apply for HTML Certification

https://www.vskills.in/certification/certified-html-designer

Back to Tutorials

Flash for Audio
Flash for Video

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?