SA-MP Forums Archive
HTML (how to make a link open WMP) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: HTML (how to make a link open WMP) (/showthread.php?tid=67350)



HTML (how to make a link open WMP) - LibertyWorld - 28.02.2009

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

Thanks


Re: HTML (how to make a link open WMP) - brett7 - 28.02.2009

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



Re: HTML (how to make a link open WMP) - mamorunl - 28.02.2009

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


Re: HTML (how to make a link open WMP) - Norn - 01.03.2009

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>



Re: HTML (how to make a link open WMP) - LibertyWorld - 01.03.2009

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



Re: HTML (how to make a link open WMP) - Norn - 01.03.2009

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.


Re: HTML (how to make a link open WMP) - boylett - 01.03.2009

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.