Pages

Friday, March 20, 2009

To run videos in your web page

Here i am using window media player plug-in as to play videos.

you need to just copy the below object code in your html file.

- lt-object id="mediaPlayer" width="320" height="260" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"-gt-
- lt-param name="url" value="/hmtv.wpl"-gt-
- lt-param name="uiMode" value="full"-gt-
- lt-param name="autoStart" value="true"-gt-
- lt-param name="playCount" value="9999"-gt-
- lt-param name="wmode" value="transparent"-gt-
- lt-embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="1" uimode="full" wmode="transparent" width="320" height="260" src="/hmtv.wpl" autostart="1" playcount="9999"-gt-
- lt-/object-gt-


here i am using .wpl(window play list) which contains the list of wma files.
the .wpl file is looks like this..

- lt-?wpl version="1.0"?-gt-
- lt-smil-gt-
- lt-head-gt-
- lt-meta name="Generator" /-gt-
- lt-author/-gt-
- lt-title-gt-Playlist4- lt-/title-gt-
- lt-/head-gt-
- lt-body-gt-
- lt-seq-gt-
- lt-media src="AVSEQ01_3_clip0.wmv" /-gt-
- lt-media src="Griffey_Ken_WMV.wmv" /-gt-
- lt-media src="AVSEQ01_5_clip0.wmv" /-gt-
- lt-media src="AVSEQ01_7_clip0.wmv" /-gt-
- lt-media src="AVSEQ01_6_clip0.wmv" /-gt-
- lt-media src="AVSEQ01_8_clip0.wmv" /-gt-
- lt-/seq-gt-
- lt-/body-gt-
- lt-/smil-gt-

( plz replace -lt- with '< ' and -gt- '>')


thats it you can run your own video's using simple object script in html pages itself.

I hope this will be helpfull post for the people.

No comments:

Post a Comment