mediaelement

MediaElement - How to get FPS (Frames Per Second)?

Is there an way to get FPS of video? ...

WPF MediaElement, change audio track

I'm writing a Media Player using WPF and the MediaElement. I was playing a video i have that has several audio tracks. But they are both playing at the same time :( How do i just play one of them ? is it at all possible ? ...

How does display:none; effect css for mobile devices?

If we have hidden some stuff using display:none; for example: images , will it still be downloaded by rendering engine? If yes, does that mean while opening the same web page in mobile, it's going to be unnecessary extra weight to download? This can further mean that modifying the same webpage for mobile can be a bad idea. Please advice...

WPF flv files Mediaelement

Hi, Is it possible to play flv video's from youtube in a WPF mediaElement? I tried it but the MediaOpened is not raised and the video dont start. Normal .mpg movies are working fine with the same code. ...

Slider working along with treeview default highlight

Hi all, I have a treeviews which look like this: 2. Header << Play Video (a) [Duration 0:00 to 0:09] and (b) [Duration 0:10 to 0:44] on click a) sub header 1 << Play Video (a) only on click b) sub header 2 << Play Video (b) only on click 3. Header << Play Video (a) [Duration 0:00 to 0:20] and...

Mediaelement source from server(mms:) problem wpf

Hi All, mp3 files from server takes more than 5mins to play in the mediaelement. Code: <MediaElement Name="player" Source="{Binding ElementName=lbTrack, Path=SelectedItem.FilePath, NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True}" UnloadedBehavior="Stop" Volume="{Binding ElementName=vo...

Loading many videos in WPF (.NET 4)

I am developing a WPF application (in .NET 4) which contains a lot of videos (40 videos, each video > 1 G) using the WPF media element. Unfortunately, I cannot load more than 10 videos at a time. When I try to display more videos, a black screen appears where normally the video should be played. Has anyone ever experienced such a pr...

Custom MediaStreamSource and MediaElement.Naturalduration property

i have written a custom mediastreamsource, that can play media from growing source files (mpeg transport streams). Once it reaches the end of its mediastream, it reads the new duration from the mediafile and continues to deliver samples. The MediaElement plays continously. Unfortunately i haven´t found a way to update the MediaElement.N...

MediaElement issue in WPF

Hello all, I have 3 treeviews which looked like this: 1. Header 1 2. Header 2 a) sub header 1 b) sub header 2 3. Header 3 a) sub header 1 b) sub header 2 So I have three images which already at there. So when I mouse over on 1. Header 1 it will highlight my 1. Header 1 and also opacity my image. So ...

What Types of Video Can MediaElement Play?

I'm looking for detailed information on what decides the formats of media that MediaElement can play, I can't seem to find any definitive source. I've read somewhere that if it can be played in WMP then MediaElement can play it. Is this true? If it is, then my next question is where can I find the capabilities and limitations of WMP? And...

Open MediaElement in FullScreen

There is a MediaElement in my silverLight4 Application that plays videos. There are also other controls in the form (listbox, buttons etc...). When vieweing a Video, i want the option to switch to Fullscreen, but only the video and not all the form (something like youtube), is there a way to switch just the 'MediaElement' control to full...

How do I 'element property bind' the isEnabled property of buttons to a MediaElement (WPF)

How do I bind the isEnabled property of play, pause, rewind & forward buttons - for a MediaElement? I can do this in code of course on MediaOpened & MediaClosed, using a shared dependancy property, but I just wondered if I can bind all the buttons (maybe with a converter) directly to a property of the MediaElement? I thought HasVideo l...

WPF MediaElement not entering "Element_MediaOpened" half of the time.

Hello.. I have an interesting question. Would there ever be a reason why when I set the source of a media element, then call it to play, that it would play some time, and other times it wouldn't? I noticed every time it does play, it hits my Element_MediaOpened function. Why could this be happening? Is this a bug? ps: opening is set t...

How to set a usb camera as a source to wpf MediaElemt in VS2010 in c#?

Hi, I have a Windows WPF application and I want to stream a video from my usb camera using MediaElement control. Is it possible to set usb camera as source to MediaElement? I'm using VS2010 framework 4.0 and c# language. ...

Playing videos in C# application via Windows Media Player. Is there a stable, decently performing solution?

I've written a WPF application (in Visual C# 2010 Express) that has 2 windows. The 1st has a various buttons, the other displays video using the MediaElement control. When a button is pressed, a video associated with it is played or stopped if it's already playing. On my development machine (Windows 7, good graphics card, lots of me...

24/7 Video Player in WPF

I'm having a problem with creating 24/7 video player for my application on WPF and .NET Framework 4.0. Application shall run on kiosk and displays video clips from my playlist in a loop. The problem is that after about 8 - 24 hours of continues playback the video frame freezes. Application does not raise any exception and continue work ...

C# WPF MediaElement Not opening video in XP

Hi everyone. I have a strange problem. I have a project that I have that simply opens up an mp4 video file and plays it. I have an event handler which I set a breakpoint in, and it gets into the Media_Opened handler I have and play it under Windows 7/64bit, but it does not even enter the handler when I play the same thing in WindowsXP ...

How to check what version of Windows Media Player is installed on the machine?

As far as I know Windows Media Player 10 is the minimum requirement for WPF MediaElement to work. What is a decent way to programmatically (from .NET) check if WMP is present, and its version? ...

Silverlight mediaelement buffering

Hello I wish to play received voice data from network in real-time mode over mediaElement control panel. For this purpose it is needed that the control should not buffer. The MSDN only writes that the default value is 5mp but I try to set it to „0” or under „1” second but it is still buffering data according to 1 second . Has anybody...

Repost of previous question: MediaElement in WPF

I am looking for a solution for a question that was already posted but did not answer correctly, thanks in advance. http://stackoverflow.com/questions/1346886/show-first-frame-of-video-in-wpf-mediaelement ...