[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP Querystring issue for Media Player

Posted on 2011-04-20
2
Medium Priority
?
420 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.
0
Comment
Question by:C_Parlato
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
C_Parlato earned 0 total points
ID: 35436176
add  onclick="javascript:window.open to my hyperlink and it works great...


go figure.

0
 
LVL 2

Author Closing Comment

by:C_Parlato
ID: 35436179
No one answered me fast enough.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses
Course of the Month18 days, 11 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question