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
6
votes
4 answers

YouTube on Windows Phone with MediaElement

This blog post suggests that it might be possible to play YouTube videos with the Silverlight MediaEelement directly.
Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
6
votes
1 answer

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…
Sio
  • 1,419
  • 1
  • 13
  • 23
6
votes
4 answers

WPF MediaElement Video freezes

I am using Image and MediaElement in wpf project, where I show Images and Videos from file system. I have few timers, which load files to Image/MediaElement controls. Everything works for 4-5 hours, but then MediaElement Video file freezes and…
0bj3ct
  • 1,400
  • 4
  • 22
  • 51
6
votes
3 answers

MediaElement.play() from within ViewModel

I'm struggling with the following issue: I am building a WP8 application using the MVVM patern. I have a media element on my view.xaml and the logic to control this media element (for example, play, stop, pause and volume) in my viewmodel.cs. How do…
Bart Teunissen
  • 1,420
  • 5
  • 20
  • 43
6
votes
1 answer

Stability issues with WPF MediaElement (MediaFailed, slow-motion video), are there workarounds out there?

I have a couple issues with it: media fails to play and continues to fail until the application is restarted audio plays normally but video is in slow-motion and will not play normally until the application is restarted. there's no way to…
erodewald
  • 1,815
  • 20
  • 45
5
votes
1 answer

MediaElement and RTSP

Does MediaElement support RTSP? I've got a stream going and I'm able to consume the stream with VLC Player via: rtsp://192.168.1.17:554/stream However, when trying to use Windows Media Player, I'm not able to stream it. Which begs the question,…
Brian Liang
  • 7,734
  • 10
  • 57
  • 72
5
votes
1 answer

How to know if WPF MediaElement is actually playing a video?

I'm developing a WPF based application that must play some videos during its execution. To do this I was using the MediaElement class, however just after I made the first tests with my application, I discovered that some of the videos that I am…
Felipe
  • 6,312
  • 11
  • 52
  • 70
5
votes
1 answer

SmoothStreamingMediaElement.Play() - Exception thrown but player starts

When I set my SmoothStreamingSource and then call .Play() I get the following exception... "Play is not allowed when there is no source set." The odd thing, is that if I handle this exception (shown in the code below), the video does start playing. …
Ben
  • 51
  • 3
5
votes
0 answers

Safari 11 mediaElement['srcObject'] = mediaStream throws Type Error

I am trying to implement WebRTC using this library (RTCMulticonnection) and am encountering a Type Error when trying to set the 'srcObject' on the video mediaElement in Safari Tech Preview 11. Relevant code: if (isSafari) { //I've tried the 4…
VIN
  • 6,385
  • 7
  • 38
  • 77
5
votes
0 answers

C# WPF MediaElement : bad video quality

I actualy develop a media player and I use the MediaElement control. However, I have a big problem with the quality of videos. With some video, the image is blurred and pixelated. With a MediaElement With the Windows App As you can see, the video…
Safirion
  • 61
  • 1
  • 5
5
votes
1 answer

How to add mediaelement seek bar

I have tv series project and I am using mediaelement. But I need help for seek bar. How to add this? How to make seek bar slider like MediaPlayerLauncher? I'm try some thinks like this:
Murat KA
  • 137
  • 1
  • 7
5
votes
1 answer

Why does MediaElement sometimes silently fail and how can I correct it?

In my WPF project I have created a view that includes several MediaElements playing videos. Sometimes, anywhere between one or all of the MediaElements will fail to play the video assigned to them, and will instead show a black rectangle, or not…
duggulous
  • 2,427
  • 3
  • 23
  • 40
5
votes
1 answer

Does a MediaElement only play when it is embedded in XAML code?

I have a sound player class that doesn't have any visuals at all, and I am trying to use a MediaElement to play my sounds. In all the test projects, in which the MediaElement is embedded in the XAML code, it works fine. However, in my code-only…
Yellow
  • 3,955
  • 6
  • 45
  • 74
5
votes
3 answers

Play rtsp stream in WPF (or WinForms)

Is there a way to play a rtsp:// stream in WPF (or alternatively WinForms)? I have tried MediaElement and MediaUriElement and none of them worked. I have also read a lot about WMP being able to play rtsp (which should translate to MediaElement too)…
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
4
votes
1 answer

Play / pause mp3 files in Windows Phone MVVM application

I am trying to play small mp3 file in my Windows Phone 7.5 MVVM application (MVVM Light is used). I am trying: 1st. To use SoundEffect: SoundEffectInstance instance; SoundEffect effect = SoundEffect.FromStream(stream); instance =…
sashaeve
  • 9,387
  • 10
  • 48
  • 61
1 2
3
57 58