Questions tagged [mediaelement]

mediaelement is an abstraction used to represent multimedia viewed by a user

mediaelement is defined as a class object in several frameworks, and encapsulates audio, video, and audio/video instances

References

863 questions
34
votes
9 answers

How do I determine if MediaElement is playing?

Seems simple enough, but I cannot figure out any way to determine what the state of a MediaElement is. There are various properties for some states (such as IsBuffering) but I can't find any for states such as Play, Pause, etc. Silverlight seems to…
Brian
  • 37,399
  • 24
  • 94
  • 109
26
votes
5 answers

How to set WPF window position in secondary display

I have two displays. I want to make a media player and I want to play video full screen on my secondary display. So I’m trying to make a media player using WPF Here is the code so far I wrote Screen[] _screens =…
A N M Bazlur Rahman
  • 2,280
  • 6
  • 38
  • 51
22
votes
2 answers

Why does WPF MediaElement not work on secondary monitor?

My application uses the WPF MediaElement to play video (MOV files). This works well when playing on the Primary monitor but freezes when the window is moved to the secondary monitor. I have tried the following without success: Starting the…
grantnz
  • 7,322
  • 1
  • 31
  • 38
18
votes
3 answers

Show first frame of video in WPF MediaElement

I have a WPF-application with a MediaElement which I use to run a video. I don't want the video to autoplay when loaded, so I set the LoadedBehavior to Manual.
stiank81
  • 25,418
  • 43
  • 131
  • 202
18
votes
3 answers

MVVM pattern violation: MediaElement.Play()

I understand that ViewModel shouldn't have any knowledge of View, but how can I call MediaElement.Play() method from ViewModel, other than having a reference to View (or directly to MediaElement) in ViewModel? Other (linked) question: how can I…
italianogrosso
  • 475
  • 1
  • 4
  • 12
14
votes
1 answer

MediaElement Speed ratio for Windows Phone 8

I'd like to manually set speed ratio for my MediaElement object in Windows Phone 8. There is no SpeedRatio property anymore, and I don't seem to be able to use SmoothStreamingMediaElement (part of Microsoft.Web.Media.SmoothStreaming namespace). Is…
ivpavici
  • 1,117
  • 2
  • 19
  • 30
13
votes
1 answer

MediaElement web Video doesn't stop buffering

I m using MediaElement to play a web video. When I left the page I noticed in the Task Manager that my app was still using 10% of network and didn't drop till it finished downloading video. I tried doing the following but no luck. //open link; …
Stamos
  • 3,938
  • 1
  • 22
  • 48
10
votes
2 answers

How to call a function on video end ? (HTML5 and mediaelementjs)

i am using mediaelementjs for playing video on my website but i need to call some function at the END/pause of video.So please tell me how an i do this? Thanks in advance
Peeyush
  • 4,728
  • 16
  • 64
  • 92
10
votes
5 answers

c# WPF how to repeat MediaElement playback from mediaended event handler without declaring new source?

I'm playing a video in WPF.i want it to loop so what I did is when the mediaended event fires, I play back my video. so this will get me a loop. prob is why do u I have to create new source again? why can't I just call 'play'? I don't want to do it…
Psychocryo
  • 2,103
  • 8
  • 26
  • 33
10
votes
2 answers

remove createMediaElementSource

I've google all over for this issue, but couldn't find anything. I am in a situation where I need to remove a source = createMediaElementSource so that I can create it again. I am using an audio analyzer which has to load each time you load a…
Sebastian Olsen
  • 10,318
  • 9
  • 46
  • 91
10
votes
1 answer

What formats does the MediaElement support?

In C# what formats does the MediaElement support?
Jermain Defo
  • 189
  • 1
  • 1
  • 11
10
votes
1 answer

WPF MediaElement stops playing if moved to other screen

I'm experiencing a very strange problem with MediaElement that seems to be related to multi screen environment: occasionally (I can't replicate the problem each time) MediaElement stops playing when I drag the window it's in from a screen to…
italianogrosso
  • 475
  • 1
  • 4
  • 12
9
votes
5 answers

Using MediaElement to play video from Stream

Is it possible to use the WPF MediaElement to play streaming video from a System.IO.Stream object? The Stream object is being retrieved from a WCF service that stores the media files.
rafale
  • 1,704
  • 6
  • 29
  • 43
9
votes
5 answers

Binding a progressbar to a mediaelement in wpf

In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement. I tried it with the following xaml:
Peter Fortuin
  • 5,041
  • 8
  • 41
  • 69
9
votes
1 answer

WPF, how to determine when a MediaElement has finished playing the movie?

I am showing a movie on my application, and i want the application to only play it once. And when its done playing i want to enable some buttons (play, rewind, watch again etc...) but is there any way i can get an event when the movie has finished -…
H4mm3rHead
  • 553
  • 1
  • 12
  • 28
1
2 3
57 58