mediaelement

MediaElement.Position behaviour and Windows Phone 7 issue

I have a problem, I have written a simple Media Player for Windows Phone 7 and can Play, Stop and control the Volume of a Video (loaded from a URI) however when I try to set the position, this causes the application to freeze. I have used both these lines, but either does not work: Player.Position = new TimeSpan(0, 0, 0, 0, (int...

wpf show video in ecllipse shape

Hi, I want to show a video in an ecllipse shape. How can i do it? Can i use the Clip property on it? how? Thanks. ...

Help on : silverlight 4 and livestreams from tv tuner card

Hi Is it possible to get livetv streams from tvtuner cards ( Elgato , hauppauge ) to silverlights mediaelement or other ( WPF ). and control channel shifting ? Perhaps through vlc ?. Need it for a demo app. So the solution do not need to be pretty :). Hope its possible Any thoughts ? cheers /Bo ...

Silverlight MJPEG viewer

I would like to consume a Motion Jpeg stream from an IP camera and ideally view it using the media element. I was hoping to find some ready made samples. ...

Creating a simple seeking media player with MediaElement in WPF

I have also posted this on MSDN forums - i hope its not a problem. I am basically trying to create a WPF based video player which allows you to seek within media. I'm trying to implement it using MediaTimeline (i know i can change the Position property, but i had other issues which i'll post in a separate question). XAML and code-behind...

Capture each WPF MediaElement frame

Is there a way to capture each WPF MediaElement frame? Like an event that fires at each rendered frame and allows me to access it. If MediaElement does not provide such functionality, how could it be implemented or what other control could I use? On a side note, is there such a control or method that would allow for off-screen fast rende...

WPF MediaElement Natural Duration

Hi, I have a MediaElement which I set its Source to a new Uri based on a valid String. For example: MediaElementName.Source = new Uri("string"); The string is a valid path, and after debugging, sometimes it sets the "MediaElementName"'s NaturalDuration, sometimes it does not.. I have been googling for at least 2 hours now with no wo...

Silverlight MediaElement Position Property Weirdness

I have a MediaElement that is reporting its position incorrectly and weirdly, but consistently. It seems like when it gets to the last second of the audio (and it's always the last second, regardless if the sound is two seconds or 10), it doesn't update it's position until it finishes. Example output: Playback Progress: 0/3.99 - ...

Multi MediaElement Sychronization in Silverlight

Hi, I'm trying to synchronise a set of MediaElement controls, each playing a specific instrument of a given music. Things go OK if I just play these MediaElements by starting them at the same time. They remain synchronized till the end. But if try to pause/play them, they become unsynchronized (5 to 20 ms). Any idea? Thanks for your ...

video information in silverlight

how can i read information (the summary) from a video file i am playing in mediaelement like name, poster, album ... like media player do or even read a file properties ... ...

WPF: Changing MediaElement source with ResourceDictionary

Hey, I want to use background music in my WPF Application. Like you can see here: http://stackoverflow.com/questions/3148965/how-to-do-background-music-for-my-wpf-application So I use a MediaElement. Now I want to change the source of it while running the Application. I'm already doing something similar with some background pictures....

What audio format works for Silverlight + WPF ?

Hi, I'm writing a pair of applications for distributing audio (among other features). I have a WPF program that allows an artist to record and edit audio. Clicking a button then uploads this to a silverlight-powered website. A consumer visiting this website can then listen to the audio. Simple. It works. But I'd like it to be better: I ...

Is it possible to bind the liistbox selected value to mediaelement source wpf

Hi All, The listbox contain images and the object assigned to the listbox have corresponding wmv file path. How to bind the selected path the the mediaelement through {binding}. Geetha. ...

media element playback a portion and wait

How can I set my MediaElement (Silverlight) to play an audio file when it has some data (for example 10 % of the streamed file) ? I want to start playback immediately after a little portion has buffered, then, if the application had no data, just pause the playback and wait. Is this possible? Thanks in advance, Regards ...

Allow users to play mp3 files but dont expose them directly on the web

I want to store some mp3s in a folder wich is no public, cant be directly accessed trough the web and allow users to hear/download the songs with a browser only if they are logged in. How can I do that ? I do my web development with django, but If I know how it works is enough. ...

Is there a way to get frame number in Silverlight MediaElement object?

We want to know whether we can get frame number? ...

mediaelement position setting problem

i use this line to set my media element position OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position); but it stays 00:00 why can't it jump to the position value ...

Silverlight mediaelement progressbar

Hi, I am trying to create a custom media player in Silverlight. I am working on the Progress Bar. I want the progress bar to display the current Download Progress as well as the Current Position of the mediaelement while it is playing. To do this I have a Progress Bar to display the download progress and a Slider laid over top to displ...

What is the reason for adding MediaElement to VisualTree?

Hello, I'm trying to find out why the last commented command is necessary in order to play a sound: private void Window_ContentRendered(object sender, EventArgs e) { MediaElement MediaElement1 = new MediaElement(); MediaElement1.Source = new Uri(@"My-absolute-path"); //myGrid.Children.Add(MediaElement1); } Does anybody know? T...

Silverlight MediaElement double buffering

Hello, I have a MediaElement that displays a simple progress bar when buffering. It gets displayed or hidden on the BufferingProgressChanged event. For the code, see below. The problem is that quite often the MediaElement decides to buffer twice, causing the progress bar to show up twice. Why is this and is there a way to fix this? Th...