Forms Data Controls :: Send Values To Windows Media Player?
Jan 3, 2011
I have embedded a windows media player object in my html. I also have a gridview that gets the name, filePath and details of files that can be downloaded from a database. I understand how to use gridviewEventArgs and commandName etc. But, how can I send the file path that I get from the database specifically to the "FileName" parameter for the html object so that the user can click on different movies in the gridview and then it changes the Filename param? Below is the html code:
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.
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.
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.
I am trying to show a few different videos in a grid view on an aspx page. The videos are stored in a folder called Videos, and the name is stored under the variable VideoName in a table along with the video title and video details. When I load the page the variables all are retrieved, and show on the page in their correct place. But the media player can't find the path to the folder, and instead shows the default image head_bckg.jpg. How can I get the media player to find the file name in the folder?
<ItemTemplate><span style=""> <div class="div2"> <h1><%# Eval("VideoTitle") %></h1> (these all work) <h2><%# Eval("VideoDetails") %></h2> (these all work)
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.
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.
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.
i want to use asp media control to show videos stored in database
<asp:MediaPlayer ID="MediaPlayer1" runat="server" Height="240px" Width="320px" MediaSkinSource="~/skins/Basic.xaml"> </asp:MediaPlayer> here i am retereving videos as per videoid using linq ELearnDataContext eld = new ELearnDataContext(); var x = (from a in eld.Videos where a.VideoID== 1 select a).First();
but i don't know how i can use asp.net mediacontrol to show reterieved videos
I found what seemed like a pretty straightforward example on the silverlight.net site that looked like this:
However, when I run it, I get an error "undefinedObject doesn't support this property or method".
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.
I am using Media Player Control to play a video file(.mpg). The video file can be played ok when I specify an absolute URL value (something llike C:UsersMyFilesMyVideoTestVideo.mpg) for the MovieURL property . Anyway when I set a relative URL value like ./TestVideo.mpg (the format follows an example from some tutorial) for the MovieURL property, the video file cannot by played.
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.