Go Back   Home > Forums > General Interest > Everything Else

Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools......

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th April 2008, 06:34 PM   #1
diyAudio Member
 
pweaudiotech's Avatar
 
Join Date: Feb 2008
Default Modified Windows Media Player Plug-in

HOW TO CREATE A WEB PAGE WITH MODIFIED WINDOWS MEDIA PLAYER PLUG-IN

THIS IS A MODIFIED VERSION OF A NEWER WINDOWS MEDIA PLAYER PLUG-IN SCRIPT
WITH AUTOSTART AND AN ADDITIONAL "LOOP" (REPEAT) FUNCTION AND THE MEDIA FILES WILL
CONTINUOUSLY REPLAY AUTOMATICALLY. IT WILL PLAY BOTH AUDIO AND VIDEO FILES OF A
COMPATIBLE TYPE.

CREATE A STANDARD HTML WEB PAGE WITH .htm FILENAME EXTENSION BY COPYING AND PASTING THE FOLLOWING FROM <BODY> TO </BODY> HEADERS INTO A TEXT EDITOR SUCH AS NOTEPAD AND "SAVE AS" WITH AN APPROPRIATE FILENAME AND FILENAME EXTENSION (e.g. playlist.htm).

NOTE: THE FOLLOWING IS TO BE CREATED AS AN INDIVIDUAL SEPARATE FILE.
WHERE "playlist.wpl" IS SHOWN (AFTER VALUE= AND SRC= SAME CAN BE RENAMED TO WHATEVER IS APPROPRIATE (.e.g. "myplaylist.wpl").
----------

<BODY>
<p align="center">
<OBJECT ID="MediaPlayer1" width=352 height=67
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="Loop" VALUE="True">
<PARAM NAME="FileName" VALUE="playlist.wpl">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="True">
<EMBED type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
SRC="playlist.wpl"
name="MediaPlayer1"
width=352
height=67
autostart=1
loop=1
showcontrols=1>
</EMBED>
</OBJECT></p>
</BODY>

----------


NOTE: THE FOLLOWING IS TO BE CREATED AS AN INDIVIDUAL SEPARATE FILE.
IMPORTANT! BE CERTAIN THAT THE playlist.wpl FILENAME MATCHES THAT OF THE MEDIA PLAYER.
HINT: THE WIDTH AND HEIGHT AS SHOWN ARE: width=352 height=67 FOR AN AUDIO FILE. THIS MEDIA PLAYER SIZE CAN BE RESET TO 'DEFAULT' OF width=352 height=288 OR RESIZED AS DESIRED TO ALSO PLAY A COMPATIBLE VIDEO FILE.
----------

CREATE A STANDARD PLAYLIST FILE WITH .wpl FILENAME EXTENSION BY COPYING AND PASTING THE FOLLOWING INTO A TEXT EDITOR SUCH AS NOTEPAD AND "SAVE AS" WITH AN APPROPRIATE FILENAME BETWEEN THE <title> and </title> HEADERS AND FILENAME WITH FILENAME EXTENSION FOR THE FILE ITSELF (e.g. playlist.wpl).


<?wpl version="1.0"?>
<smil>
<head>
<title>playlist</title>
</head>
<body>
<seq>
<media src="song1.mid"/>
<media src="song2.mid"/>
<media src="song3.mid"/>
</seq>
</body>
</smil>

----------



REPLACE THE "SONG.MID" FILE NAME IN EACH INSTANCE WITH THE DESIRED MEDIA FILE TO BE PLAYED. THIS SAME MEDIA FILE CAN BE ANY ONE THAT IS COMPATIBLE WITH THIS MEDIA PLAYER (e.g. "song.mp3", "movie.wmv" and etc...).
IMPORTANT! BE SURE TO SAVE ALL MEDIA FILES, THE HTML WEB PAGE AND PLAYLIST FILE IN THE SAME FOLDER OR ROOT DIRECTORY. A FOLDER CAN BE CREATED AND THEN THESE SAME FILES ADDED TO IT FOR REFERENCE (e.g. Folder Name: playlist).
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What do Foobar, J River, etc do better than Windows Media Player (10 or 11)? rick57 Digital Source 9 25th October 2006 04:53 AM
If you’ve tried Windows media Player 11 rick57 Digital Source 0 25th October 2006 12:17 AM
EQ in Windows Media Player Godzilla Full Range 1 31st May 2006 01:26 AM
uninstalling windows media player slackerbob The Lounge 13 30th March 2004 03:48 AM


New To Site? Need Help?

All times are GMT. The time now is 03:58 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2