HTML (how to make a link open WMP)
#1

How to make a link open windows media player, whitout asking to open or save?

Thanks
Reply
#2

you can't, can you imagine if you could run a file on someones computer without them authing it
Reply
#3

you could implement it in your website. Through an EMBED (I think)

example: www.arrow.nl/services/onlineradio_rock.php RightMouseButton on the page and click show source
Reply
#4

Code:
 	<OBJECT id="mediaplayer" height="50" width="271" type="application/x-oleobject">

		<param name="URL" VALUE="SHOUTCASTURL/FILE">
		<param name="autostart" VALUE="-1">
		<param name="enabled" VALUE="1">
		<param name="enablecontextmenu" VALUE="0">
		<param name="showpositioncontrols" VALUE="0">
		<param name="ShowControls" value="0">
		<param name="showtracker" VALUE="0">

		<param name="ShowGotoBar" value="0">
		<param name="ShowPositionControls" value="false">
		<param name="ShowStatusBar" value="1">
		<param name="ShowDisplay" VALUE="false">

 		<embed name="mediaplayer" id="mediaplayer" type="application/x-mplayer2" width="271" height="50" src="SHOUTCASTURL/FILE" pluginspage="http://www.microsoft.com/Windows/Dow.../MediaPlayer/" autostart="true" ShowDisplay="false" enabled="1" enablecontextmenu="false" showpositioncontrols="false" showtracker="false" showstatusbar="1" />
 		</embed>
	 </OBJECT>
Reply
#5

Quote:
Originally Posted by Norn
Code:
 	<OBJECT id="mediaplayer" height="50" width="271" type="application/x-oleobject">

		<param name="URL" VALUE="SHOUTCASTURL/FILE">
		<param name="autostart" VALUE="-1">
		<param name="enabled" VALUE="1">
		<param name="enablecontextmenu" VALUE="0">
		<param name="showpositioncontrols" VALUE="0">
		<param name="ShowControls" value="0">
		<param name="showtracker" VALUE="0">

		<param name="ShowGotoBar" value="0">
		<param name="ShowPositionControls" value="false">
		<param name="ShowStatusBar" value="1">
		<param name="ShowDisplay" VALUE="false">

 		<embed name="mediaplayer" id="mediaplayer" type="application/x-mplayer2" width="271" height="50" src="SHOUTCASTURL/FILE" pluginspage="http://www.microsoft.com/Windows/Dow.../MediaPlayer/" autostart="true" ShowDisplay="false" enabled="1" enablecontextmenu="false" showpositioncontrols="false" showtracker="false" showstatusbar="1" />
 		</embed>
	 </OBJECT>
Thanks, but i want it to open it on the person computer not in the browser.
So its supposed to open a WMP window
Reply
#6

Quote:
Originally Posted by plɹoʍ ʎʇɹǝqıl
Quote:
Originally Posted by Norn
Code:
 	<OBJECT id="mediaplayer" height="50" width="271" type="application/x-oleobject">

		<param name="URL" VALUE="SHOUTCASTURL/FILE">
		<param name="autostart" VALUE="-1">
		<param name="enabled" VALUE="1">
		<param name="enablecontextmenu" VALUE="0">
		<param name="showpositioncontrols" VALUE="0">
		<param name="ShowControls" value="0">
		<param name="showtracker" VALUE="0">

		<param name="ShowGotoBar" value="0">
		<param name="ShowPositionControls" value="false">
		<param name="ShowStatusBar" value="1">
		<param name="ShowDisplay" VALUE="false">

 		<embed name="mediaplayer" id="mediaplayer" type="application/x-mplayer2" width="271" height="50" src="SHOUTCASTURL/FILE" pluginspage="http://www.microsoft.com/Windows/Dow.../MediaPlayer/" autostart="true" ShowDisplay="false" enabled="1" enablecontextmenu="false" showpositioncontrols="false" showtracker="false" showstatusbar="1" />
 		</embed>
	 </OBJECT>
Thanks, but i want it to open it on the person computer not in the browser.
So its supposed to open a WMP window
I know that, but you cant just open a file on someones computer as stated before.
Reply
#7

if u link to a file from a page, and the file has the mime-type "application/x-mplayer2", it will open outside of the browser.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)