Media Player Play Files From Url?

Jul 9, 2010

i have an example of a windows app media player. which opens up a file selection and plays that mp3. i want to play from a web location.

the method is below whch i am using, i have commented the old code, how would i get a track to play which is located on the web?

[Code]....

View 1 Replies


Similar Messages:

Web Forms :: Play Windows Media Player In Webpage Without Installing Windows Media Player?

Mar 20, 2010

i have the following bit of code... is there a way to embed a media player into a webpage (such as windows media player) and play a file on it without actually having to have windows media player installed?

so to clarify, can i play a windows media player in a webpage without having it installed? because at the moment the follwing bit of code only plays my files asfter i installed windows media player on my PC.

private static string MediaPlayer(string file)
{ return "<OBJECT ID="mediaPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft Windows media Player components..." type="application/x-oleobject">" +
"<PARAM NAME="AutoStart" VALUE="true" />" +
string.Format("<PARAM NAME="FileName" VALUE="{0}" />", file) +
"<PARAM NAME="ShowControls" VALUE="true" />" +
"<PARAM NAME="ShowStatusBar" VALUE="true" />" +
string.Format("<EMBED type="application/x-mplayer2" SRC="{0}" name="mediaPlayer" width="176" height="144" autostart="1"showcontrols="1"></EMBED>", file) +
"</OBJECT>";
}

View 1 Replies

Web Forms :: How To Control Media Player To Play The Videos

Jan 28, 2011

I want to media player control to play the videos in my website

View 3 Replies

Embedded Windows Media Player Failed To Play

Mar 17, 2011

I'm working on an Intranet Web site that will include an audio playback feature. I'm approaching this with an embedded Windows Media Player (class ID: 6BF52A52-394A-11D3-B153-00C04F79FAA6). The problem I have is that if I set an missing or inaccesible as the URL I can't find a way to determine from Javascript that it failed to play. It appears the player starts to play and immediatly stops. How do I detect a File Not Found or other error?

View 6 Replies

DataSource Controls :: Play Field From Sql Server In Media Player?

Feb 26, 2010

I have a varbinary field in a sql table which is actually a sound file. When I pull that data into a gridivew it is currently showing as byte[]. I would like to make that field a link and when the link is clicked the file will play in the users default media player. I am looking how to pull the varbinary column data and play it for the user.

View 1 Replies

Web Forms :: Silverlight Media Player Change Source And Play From Javascript?

Jan 22, 2010

I am having trouble accessing an embedded Silverlight 2 media player in an aspx page from Javascript and was hoping someone might offer some insight on what's going on.

What I want to do is fire a javascript event on the client when a button is pressed to change the Silverlight media player media source and then play the newly selected file.

I found what seemed like a pretty straightforward example on the silverlight.net site that looked like this:

[Code]....

However, when I run it, I get an error "undefinedObject doesn't support this property or method".

I've confirmed that the client-side id I am using is correct, and I have tried using document.GetElementByID in place of $find (which is what I use elsewhere on the site successfully; my javascript kung fu is weak and I'm not precisely sure what the difference
might be) but it still doesn't work. It all seems like it should work as it was presented in the example, but I only get that error.

View 1 Replies

SQL Server :: How To Upload Video And How To Retrieve It And Play In Windows Media Player

Oct 5, 2010

i am developing web portal, which suppose to upload video in sql2005 and should be able to retrieve that video on request and play in aspx page with windows media player.

View 1 Replies

Web Forms :: Having A Avi Video File Of 250MB. Want To Play It Through It Media Player Control?

Jan 22, 2010

Iam having a avi video file of 250MB.i want to play it through it media player control.it plays but first it download the whole file than plays.so what i want is to buffer that file.so at moment user clcks on play buttonit starts playing the file.

View 6 Replies

C# - End User To Use My Silverlight Media Player Application In Browser To Play The File, Prevent Them From Download To Local Directly?

Mar 4, 2010

I am using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0 + ASP.Net to develop a Silverlight application (a video media player) in browser and the function is simple, just use MediaElement to play a remote video file.The remote server is Windows Server 2008 + IIS 7.0 + IIS Media Bit Rate Throttling Control.Since the request media URL can be discovered (e.g. from traffic sniffer), and I want to know how to prevent from download directly from the Url? i.e. I want end user to use my Silverlight media player application in browser to play the file, prevent them from download to local directly. Any easy and quick solution or reference code/documents?

View 5 Replies

How To Play .flv Files In The Media Element Provided In WPF

Nov 20, 2010

I would like to build a component to play all the audio/media files(especially .flv files) using asp.net.so could you please provide me the necessary code/idea to create the component

View 1 Replies

How To Check For Media Player And Real Player Are Installed

Sep 8, 2010

I am using the media player and real player video controls they work fine in ie. How can I check they are installed in all main browsers like firefox and chrome and ie if not installed ?.

View 2 Replies

How To Play MP4 Video On Window Webserver In Quick Time And Flash Player (flv Player)

Aug 3, 2010

I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc.

Does it need to have mp4 player(or codec etc) installed on webserver?

I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.

View 1 Replies

Web Forms :: How To Interact Between Windows Media Player And Windows Media Services

Jan 12, 2011

I have an ASP .NET 2.0 (4.0 is an option) page that I've embedded the Windows Media Player to using OBJECT tags.

The player is connecting to a Windows Media Services publishing point on the Web server. This is on a 2008 server.

Everything works great, see it here: [URL]

If I understand correctly, the information the player is showing in its status bar comes from the ID3 tags of the current track. Continuing on this line of thought, the ID3 information must be coming to the player from the media server. Correct?

What I want to do is collect and use the information about the track that's current being played. I'd like to be able to create a custom display for the current track information. I'd also like to put a custom value in the track information to look up additional information about the artist/track from a database.

View 2 Replies

Web Forms :: Windows Media Player Not Playing "inline" Files, Only As "attachment"

Jul 14, 2010

I have the following code that is trying to "spit out" an mp3 file so WMP can play it. However it keeps saying that it cannot play the file. However if I change the "inline" parameter for "attachment", the browser invistes me to open it and then, WMP can play it. I have seen some related articles around but I cannot make it work. The file is in the website's root folder and only authenticated users can reach it, but in my tests I am logged in as a valid user.


private static void Test2(HttpResponse Response, string filepath, params string[] additionalHeaders)
{
Response.ClearContent();

Response.ClearHeaders();[code].....

View 3 Replies

Web Forms :: How To Add The Media Player In The Toolbar

Aug 22, 2010

i need to know if it's able to add a media player in my site in such a way that i can pass each time the name of the video that i want o be play.

and how i can add the media player in the toolbar?

View 2 Replies

How To Make Media Player Easily

Mar 18, 2010

I want to make a media player in asp.net... url's or code that is easy to understand.(bcoz i m learning asp.net)

View 2 Replies

Web Forms :: How To Get The Themes For Media Player

Feb 1, 2011

i am using Media Player in my site its working fine..but if i want to use themes where should i get those thems(professional xaml.,,et.,) ..is it possible to download..if yes provide the link

View 1 Replies

Second Request From Media Player In A Web Page?

Oct 9, 2010

I have an ASP.NET web application where a Microsoft Media Player object on the page (in IE) is issuing a request for an .aspx web page. In the page I use TransmitFile to send back the audio file. This works fine most of the time.

But, in some cases (a combination of IE version and a specific client, at least from what I can see) there is a second request issued, with the exact same URL. The only difference I can see between the first and second request is the user-agent value. The first request will have User-Agent: Windows-Media-Player/9.00.00.4508 and the second one will have User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

This second request is causing the audio file to be sent a second time over the net, which is wasteful. This is what I'm trying to avoid. I had a related question here, but in this case there is no Range request. It is just the same exact request again (same headers, except for the user-agent).

I was trying to suppress the second response (based on the user-agent in the header) with all kind of HTTP status responses (304, 404, 500 etc.) This works for some clients, some of the time, but breaks occasionally (the Media Player will just not play the audio, even though Fiddler will show it was transfered on the first request).

I would like to "convince" the browser to avoid the second request, if possible. As a second option I would like to find a response to the second request that will not break the playback, but avoid sending the whole audio buffer.

View 3 Replies

C# - Silverlight Media Player Position

Nov 24, 2010

My application plays movies from specific positions, so even a position mentioned in milliseconds matters for me. I'm assigning a position to a media element but it's showing the wrong frame. I don't know why media player is not playing from the position that I'm giving. Here is some sample code:

TimeSpan oTimeSpan = TimeSpan.FromMilliseconds(16800200); // This shows 04:40:00.2000000
MediaPlayer.Position = oTimeSpan; // But after assigning, value is 04:40:00.1990000

View 2 Replies

Web Forms :: Can't Get A Media Player Control On Web Application In VS

Jan 10, 2010

First of all, I have done a few C# applications, but are new to C# asp.net web applications.

What I am trying to receive is a simple Media player control on an aspx page. And furthermore a button (not the button on the media player control), that starts the media player with a videostream url. Thats all!

I can easily achieve this in an ordinary c# application form, by importing:

AxInterop.WMPLib.dll, Interop.WMPLib.dll and wmp.dll references in the project. Now i am able to choose a "Windows media player" control in the toolbox, which i can drag into my form. Nice and easy.

But when i import these dll´s in my ASP.NET Web application, I cannot see the media player control in the toolbox. Ive tried to right-click the toolbox, and click "Choose items", and see that 'Windows media player' is checked under the COM components tab. But i still cannot see the control in the toolbox. Only in an ordinary c# application form.

View 7 Replies

Web Forms :: Windows Media Player Load

Oct 20, 2010

The WMP is loaded immediately but the wmv file need more time. How I can inform the visitor that the video is loading may be using a word "Wait..." or other?

View 2 Replies

Insert Windows Media Player Control In 4.0?

Dec 21, 2010

how to insert windows media player control in asp.net 4.0 web form to retrieve video filename from an sql datasource and play online. no 3rd party tools that will ask for subscription post trial offer etc.

View 6 Replies

How To Build Media Player Control In C# Code

Oct 1, 2010

First of all, I am introducing myself. I am a new in web developer.I want to build ASP.NET Media Player Control in C# .Net code . Now we want to play all music file . For this we are looking API scripting.

View 3 Replies

How To Build Media Player Control In C# .Net Code

Sep 30, 2010

I am a new in web developer.I want to build Media Player Control in C# .Net code . Now we want to play all music file . For this we are looking API scripting.

View 3 Replies

MVC :: Open LinkButton Link In Media Player?

Feb 2, 2011

I am creating an ASP.NET MVC Web application. Among the options are a series of LinkButtons that refer to videos. I want the user to be able to click on the LinkButton and have the video play in MediaPlayer. I do not use Silverlight in the application, because I don't want the user to have to have Silverlight installed in order for it to work.

The "fly in the ointment" for this is that I DON'T want Media Player to remain open if they are doing other things. I want Media Player to open ONLY if they click on the LinkButton.

I thought about doing this by opening a separate Media Player window, but I had two problems with that:

- how can I make the separate MediaPlayer view open?

- how can I pass the URL of the video to MediaPlayer if it's a separate view?

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved