We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

ASP Querystring issue for Media Player

Medium Priority
443 Views
Last Modified: 2012-05-11
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.

<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>

Open in new window


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>

Open in new window


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.
Comment
Watch Question

Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
No one answered me fast enough.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.