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
3
votes
1 answer

How to stream videos in WPF?

I want to stream video in a WPF application. There are two potential ways: Embed VLC. Problem: I know how to embed VLC in a WinForm application but not in a WPF one. Use MediaElement. Problem: I know how to play a wmv file, but I don't know how to…
Zirui Wang
  • 237
  • 3
  • 12
3
votes
1 answer

Controling MediaElement and its source in MVVM pattern

I have DataGrid with list of video clips and MediaElement which should play a clip selected in that DataGrid. I've managed to achieve this by doing this: MainWindow.xaml
AstroPiotr
  • 127
  • 1
  • 2
  • 10
3
votes
2 answers

C# MediaElement -- Why does Play() sometimes silently fail after switching the source?

I have a MediaElement set up in a custom UserControl for a video player control that I've been making -- play/pause button, slider, time remaining, etc. I have ScrubbingEnabled set to True so that I can show the first frame of the video to the user…
Deadpikle
  • 356
  • 6
  • 22
3
votes
1 answer
3
votes
1 answer

Save MediaElement file source to isolated storage

With a MediaElement using an external source -- is it possible to play an mp3 while it's downloading, and then when it's finished downloading, save it to isolated storage for future use? If not, what's the best way to accomplish this?
3
votes
1 answer

UWP youtube player in mediaelement

I am currently developing an UWP youtube player and i am having some big trouble with playing the actual video. I am using this to play a youtube video in a media element: using MyToolkit.Multimedia; var url = await…
Darksody
  • 481
  • 1
  • 4
  • 15
3
votes
0 answers

Silverlight mediaelement buffering

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…
ZsTay
  • 31
  • 2
3
votes
1 answer

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

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.
dani
  • 469
  • 3
  • 12
  • 23
3
votes
0 answers

UWP background audio works on PC but not mobile

Hello I'm building a UWP radio app where the user can select different radio stations and podcasts. I have made my design so i have implemented a splitview where when a user starts playing audio a MediaElement will show up in the buttom of the…
3
votes
2 answers

Add playlist Items dynamically in MediaElement Player

Currently I am able to add media items to playlist using static HTML code by using mep-feture-playlist plug-in.
3
votes
3 answers

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

Is there an way to get FPS of video?
Joy
  • 69
  • 5
3
votes
1 answer

Silverlight MediaElement progress

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…
Hunter
  • 574
  • 2
  • 6
  • 27
3
votes
1 answer

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…
BarrettJ
  • 3,431
  • 2
  • 29
  • 26
3
votes
0 answers

WPF MediaElement control plays in debug sessions, but not at runtime

I'm designing and testing an MP4 viewer control that looks like the image below, a simple list-details kind of layout. Users select an item from the list, and the movie can be played on the right. I'm using the MediaElement control from the WPF…
Rob Perkins
  • 3,088
  • 1
  • 30
  • 51
3
votes
3 answers

After playing a MediaElement, how can I play it again?

I have a variable MediaElement variable named TestAudio in my Silverlight app. When I click the button, it plays the audio correctly. But when I click the button again, it does not play the audio. How can I make the MediaElement play a second…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047