C_Parlato
asked on
ASP Querystring issue for Media Player
Ok... I'm trying to pass the parameter to an embedded media player on my website. However, I can get the parameter to pass but can't seem to get the player to play the file.
The mediafiles are stored in the same subdirectory on the site, so I didnt' think I needed to add anything else to querystring.
on the recieving aspx page the I have the following embedded control
Your welcome to look at the site to see it in action. www.lighthouseretirement.com under the radio show tab. I just can't seem to get this to work. Need some help.
<a href="#" onclick="window.open('test2.aspx?mediafile=LR04-02-2011.mp3', 'StatusBar', 'toolbar=no,resizable=no,scrollbars=yes,width=250,height=300,left=0,top=0');" title="tool tip">
<img alt="" class="style13" height="60" src="BluePlayButton.png" width="66" /></a>
The mediafiles are stored in the same subdirectory on the site, so I didnt' think I needed to add anything else to querystring.
on the recieving aspx page the I have the following embedded control
<OBJECT ID="mediaPlayer"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="height: 26px; width: 220px">
<PARAM name="autoStart" value="True">
<param name="URL" value="<%=Request.QueryString("mediafile")%>">
<param name="filename" value="<%=Request.QueryString("mediafile")%>" />
<param name="uiMode" value="mini">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer'
name='mediaPlayer'
displaysize='0'
autosize='0'
bgcolor='darkblue'
showcontrols='1'
showtracker='0'
showdisplay='0'
showstatusbar='1'
videoborder3d='0'
autostart='1'
designtimesp='5311'
loop='0'>
</EMBED>
</OBJECT>
Your welcome to look at the site to see it in action. www.lighthouseretirement.com under the radio show tab. I just can't seem to get this to work. Need some help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER