On the web multimedia can be downloaded to the user, streamed to the user, embedded in the web page or uploaded to a video sharing service like YouTube for viewing or online video services like ITunes for downloading and streaming. The media files can be a very short clip or a large file like a full movie or audio book.
The media file is embedded in the web page using the <object> and <embed> HTML codes. While both perform similar functions of embedding elements into the web page not all browser support both so they are used together to ensure delivery of the content. Embedded media plays in the browser plug-in version of the media player. It starts to load with the page when it is requested and can be set to start when the page loads. Since it is integrated on the web page it can be associated with the content. For example, a web page on a car model can have the video of the car showing its features.
The media player is identified in the code. The <param> values are used to identify the source of the media files, caption files and player features. These variables determine how the embedded media looks (control bars, etc) and behaves (auto play, loop, etc).
Example of <object> tag for Windows Media the classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" identifies the player
<object ID="MediaPlayer" width="192" h="190" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
<praram name="FileName" value=""http://location/blackhole.wmv">
<param name="captioningID" value="captions">
<param name="captionfilename" value="http://location/blackhole.smi">
<param name="autostart" value="false">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" value="false">
<embed type="application/x-mplayer2" src="blackhole.wmv" name="MediaPlayer"
width="192" height="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </embed>
</object>
Codes for embedding differnt file formats
HTML code for embedding media players
Large media content like movies, audio books are usually downloaded from a remote location and stored on the user's device. A download link on the page gives the URL of the media file.
Streamed media is requested by a link on the page. It will be streamed from a media server to the media player on the user's computer. Example of code:
<a http://webserver/mediafile.asx>view this WMP file</a>
<a http://webserver/mediafile.smi>view this QT file</a>
<a http://webserver/mediafile.ram>view this Real Media file</a>
You need a YouTube account before you can upload a media file. The media files should be less 2 GB in size. YouTube supports the following media formats:
You will need a transcript file of a caption file. The transcript file is a plain text file. YouTube uses speech recognition technology to automatically time stamp an transcript in English creating a caption file. While YouTube will accept DFXP, SAMI or RealText caption files, the preferred format are .srt and .sub. Example of the file:
1
00:00:20,000 --> 00:00:24,400
Most big galaxies contain big black holes not just big
2
00:00:24,600 --> 00:00:27,800
super sized with millions of times the suns mass.
Accessify.com has a free online service to help create the caption file from a transcript for YouTube
YouTube videos are flash format. You need flash plug-in installed in your browser.
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="344"> </embed>
</object>
These material are copyrighted by EASI in 2011. We encourage your sharing useful individual pieces of information to help people. However, we request that you do not share the entire workshop without specific written permission.