?
Solved

Embedded Windows Media Player

Posted on 2006-05-26
5
Medium Priority
?
446 Views
Last Modified: 2006-11-18
I have an embedded windows media player but my clicktoplay or standby text doesnot seem to work.
Hmm...

<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 " codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="220" height="200" id="MediaPlayer">
                                  <param name="FileName" value="<%=(rsvideos.Fields.Item("videolink").Value)%>">
                                  <param name="AutoStart" value="False">
                                  <param name="ShowControls" value="False">
                                  <param name="ShowStatusBar" value="False">
                                  <param name="ShowDisplay" value="False">
                                  <param name="AutoRewind" value="True">
                                  <param name="standby" value="Loading...">
                                  <param name="playcount" value="1">
                                  <param name="clickToPlay" value="True">
                                  <embed width="220" height="200" autostart="False" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" filename="<%=(rsvideos.Fields.Item("videolink").Value)%>" showcontrols="False" showstatusbar="False" showdisplay="False" autorewind="True" standby="Loading..." playcount="1" clicktoplay="1"></embed>
                                </object>
0
Comment
Question by:vonfranzken
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:zawedikian
ID: 16768185
hi

i actually tried your code and it works!
i deleted your asp code to put a static song name and it worked: however when i actually put a wrong file name, the play button didn't work anymore. so i guess what is wrong is the paramater your are giving as file name. you should give the whole path (or at least a relative one to your site)


<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 " codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="220" height="200" id="MediaPlayer">
                                  <param name="FileName" value="C:/DaTa/My Documents/My Music/Soft/01 - WHEN YOU BELIEVE.mp3">
                                  <param name="AutoStart" value="False">
                                  <param name="ShowControls" value="False">
                                  <param name="ShowStatusBar" value="False">
                                  <param name="ShowDisplay" value="False">
                                  <param name="AutoRewind" value="True">
                                  <param name="standby" value="Loading...">
                                  <param name="playcount" value="1">
                                  <param name="clickToPlay" value="True">
                                  <embed width="220" height="200" autostart="False" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" filename="C:/DaTa/My Documents/My Music/Soft/01 - WHEN YOU BELIEVE.mp3" showcontrols="True" showstatusbar="True" showdisplay="True" autorewind="True" standby="Loading..." playcount="1" clicktoplay="1"></embed>
                                </object>
zeina
0
 

Author Comment

by:vonfranzken
ID: 16768296
Hi and thanks
The file name is dynamic and does work when I set they autostart to true though.
I dont think it is so much the file name is it?
0
 
LVL 3

Accepted Solution

by:
zawedikian earned 2000 total points
ID: 16768348
hi again

i dont know. one last thing i can make u try so see if it works (since u r saying that even your stand by isn't working) is to put:

showcontrols="True" showstatusbar="True" showdisplay="True"

try it. hope it works.
zeina
0
 

Author Comment

by:vonfranzken
ID: 16768392
Didnt work but I'll give you the points
0
 
LVL 3

Expert Comment

by:zawedikian
ID: 16768401
hi
listen u dont have too. i was glad to try to help and sorry i couldn't :) so dont worry about the points.

zeina
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 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