473,698 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2862
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="Loadin g Windows
Media Player components..." TYPE="applicati on/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="mms://url to your file">
<PARAM name="autostart " VALUE="false">
<PARAM name="ShowContr ols" VALUE="true">
<param name="ShowStatu sBar" value="true">
<PARAM name="ShowDispl ay" VALUE="false">
<EMBED TYPE="applicati on/x-mplayer2" SRC="mms://url to your file"
NAME="MediaPlay er" 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
8914
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 object from the toolbox and all the sites i read say when "Adding the Windows Media Player control from the Toolbox also adds references to two libraries created by Visual
1
7892
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 create a simple console application which will be able to find out what the values of a currently playing tack. I've downloaded the Windows Media player SDK which come with some IDL and
20
4602
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 get it working at all for PDF files. I checked the stream, and the decrypted data is written properly to the MemoryStream (I can dump the memory stream to disk in the APP and open it fine), but I can't even get the Acrobat activeX control to...
1
1278
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 Ollie Riches
2
1387
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 = document.getElementById("pathStore").getAttribute("value"); player.URL = myURL; alert(player.URL);
1
4537
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 right-click option in the embedded Real & Quick Time players, because I don't want the viewers to download the video but to view it while streaming.
3
2559
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 right-click option in the embedded Real & Quick Time players, because I don't want the viewers to download the video but to view it while streaming.
6
5692
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 of my website is php and lets say here is how the player is shown with very simple syntaxes: <OBJECT id="VIDEO" width="'.$x.'" height="'.($y+60).'" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <param...
3
5684
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 those commands, and so on, just like my multimedia keyboard does. I can't find any way to do this. I have tried sending: System.Windows.Forms.Keys.MediaPlayPause, System.Windows.Forms.Keys.MediaPreviousTrack, ect. but it didn't do anything. Is...
0
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.