473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Embedded Media Player

I have a embedded media player into an ASP.NET web page and it all works
except for the first time the page loads, when the user clicks on the play
button, the player acts like it is going to play and then it stops. When I
refresh the page, it works fine. Not sure what to think here about this. Any
ideas?
Feb 10 '06 #1
2 2837
I don't have an answer but i'm interested in how you embedded the player. Can
I steal your code?

Thanks,
Sarah

"codepuller" wrote:
I have a embedded media player into an ASP.NET web page and it all works
except for the first time the page loads, when the user clicks on the play
button, the player acts like it is going to play and then it stops. When I
refresh the page, it works fine. Not sure what to think here about this. Any
ideas?

Mar 2 '06 #2
Sure, it is just an object tag in your HTML.

<OBJECT ID="MediaPlayer" WIDTH="220" HEIGHT="220"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows
Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="mms://url to your file">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="mms://url to your file"
NAME="MediaPlayer" WIDTH="220" HEIGHT="220"> </EMBED>
</OBJECT>

There are quite a few more parameters that can be used to set the behavior
of the object. You can do a search on embedding windows media player in an
ASP.NET page and you can get lots of references.

If your interested, I solved my problem by setting up windows media services
on my web server. My solution was to use streaming video, instead of just
having it download to the local browser. It was fairly easy to set up. Here
is the URL to the page I used to set up the streaming.

http://www.devsource.com/article2/0,1759,1772060,00.asp

Good Luck!

"Sarah Sarah" wrote:
I don't have an answer but i'm interested in how you embedded the player. Can
I steal your code?

Thanks,
Sarah

"codepuller" wrote:
I have a embedded media player into an ASP.NET web page and it all works
except for the first time the page loads, when the user clicks on the play
button, the player acts like it is going to play and then it stops. When I
refresh the page, it works fine. Not sure what to think here about this. Any
ideas?

Mar 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anise | last post by:
I have a question concerning embedding a windows media player into a web application in .net.. I download Windows Media Player 10 and its SDK On the .ascx page I placed a windows media player...
1
by: Stephen Adam | last post by:
Hi there, Have spent a while trying to find out how to connect to Windows Media Player through COM. Unfortunately there doesnt seem to be much stuff about it on the web. What I need to do is...
20
by: igarrison | last post by:
I have an APP that reads from a file on disk and decrypts the raw data into the memory stream that then gets passed to the client. This works great for any text or image files, but I can't seem to...
1
by: Ollie Riches | last post by:
I have managed to host an embedded media player in an aspx page and play content. How can I get the media player to start playing to the content before it has completely downloaded? Cheers ...
2
by: gsauns | last post by:
I have a Windows Media Player control embedded in my page. This is the code I use to get it to play: function setPlayerURL() { player = document.getElementById("wmpWindow"); myURL =...
1
by: DILA | last post by:
Hi, I have included an embedded Real Player and an embedded Quick Time Player for streaming videos, in my web pages. I'm interested in searching for a method or a script to disable the...
3
by: homec | last post by:
Hi, I have included an embedded Real Player and an embedded Quick Time Player for streaming videos, in my web pages. I'm interested in searching for a method or a script to disable the ...
6
by: xhunter | last post by:
I have this problem on my website and no matter what I have not been able to get over it, it is really getting on my nervers. it's a problem that only exists in non IE browsers. the frame work...
3
by: hurricane_number_one | last post by:
I want to be able to play/pause/next/back the tracks in whatever media player app is running. So if iTunes is running, it will receive those commands, if Windows Media Player is, it will receive...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.