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

Playing videos in succession with MediaElement + Storyboard

I have a timeline of video files that were recorded in succession. I need to play them in my application in the same order. I already know the relative start time and duration of each video. The next video may not have started recording until…
3
votes
0 answers

streaming radio windows phone from chunks of audio

I'm is someone able to point me in the right direction for playing multiple streams/AAC media either with a MediaElement or MediaPlayer. I have 3 streams that get returned from a server and this gets updated every 10 seconds so I add the new streams…
3
votes
4 answers

Change Source in MediaElement (SILVERLIGHT)

I would like to change song on my MediaElent from track1.mp3 to track2.mp3. And here is the code: MyMediaElement.Stop(); Uri u = new Uri("track2.mp3", UriKind.Relative); MyMediaElement.Source=u; MyMediaElement.Play(); The MediaElement change the…
Krika
  • 453
  • 7
  • 20
3
votes
1 answer

Playlist for WPF MediaElement app

I'm learning C# and WPF by building a WMP-type app. The code below runs fine, selecting a movie from the listbox runs it in the media element. The problem I'm having is finding a way to automatically start the next movie after one ends. Thank…
Ken S
  • 31
  • 1
  • 2
3
votes
4 answers

Replaying a video continuously in a WPF media element

I have a video file playing in a media element. I need to keep it playing, thus I tried: me.play(); me.MediaEnded += new RoutedEventHandler(me_MediaEnded); With this event method: //loop to keep video playing continuously void me_MediaEnded(object…
Anoushka Seechurn
  • 2,166
  • 7
  • 35
  • 52
3
votes
1 answer

WordPress 3.6 MediaElement.js styles take time to load

Since 3.6 WordPress has included MediaElement.js in core. As an example, if you take a look at the video player on the http://mediaelementjs.com homepage you will see that for a portion of the very first second, the player looks slightly different.…
henrywright
  • 10,070
  • 23
  • 89
  • 150
3
votes
1 answer

Using WPF MediaElement with MKV video format - no audio

I'm attempting to play .mkv video files using the MediaElement control in WPF/VB. The video works great, but I've yet to get audio from any of the .mkv files that I've tried. Typical audio codecs for my .mkv files are A52 Audio (aka AC3) or DTS. …
bham3dman
  • 77
  • 9
3
votes
1 answer

WPF Mediaelement.Position is not working

What I need is to set the Position property on WPF's MediaElement control. But when I play the video, (either via Play() or through some kind of animation on Opacity) it is is not working at all. It is showing 00:00:00 time, but I would expect it to…
NoWar
  • 36,338
  • 80
  • 323
  • 498
3
votes
2 answers

WPF Mediaelement mediaopened event not firing from code behind but does from button click handler

First post so be gentle and sorry for a long post but wanted to provide as much detail as I could. I have a MediaElement control inside a usercontrol with the LoadedBehaviour property set to manual, see below. When I click on the 'Open' button the…
Jim
  • 201
  • 2
  • 12
3
votes
2 answers

SL media element won't play my wave file after the first time

I use WaveMediaStreamSource (WAVmss) library to play wave files on silverlight media element. It plays the first time I load the file into the element, but when I try and play it a second time it doesn't play. I used the sample from here. Maybe I'm…
Dor Cohen
  • 16,769
  • 23
  • 93
  • 161
3
votes
1 answer

How to create Source for WPF Media Element from byte array using c#?

I have converted a video to bytes array and stored it in MsSql Database. Now I fetch it from database and I get the byte array. I want to set this byte array as Source of media element and then show this video in WPF application. Please suggest a…
Akash Soni
  • 98
  • 1
  • 7
3
votes
3 answers

.wmv videos not playing in WPF MediaElement control in Windows 8

I am having trouble getting videos to play using the WPF MediaElement on a windows 8 box. Since the MediaElement control relies on Windows Media Player, I tried to play the video on my Win 8 box in WMP and it plays fine, so it doesnt appear to be a…
Iron_Teapot
  • 77
  • 1
  • 8
3
votes
0 answers

Initializing mediaelement.js without using jquery

I roll my own javascript and don't use jquery. I'd like to run mediaelement.js without jquery. I've tried a few different methods and when I test in FF with an MP3,which needs the flash player it throws an error: TypeError:this.node is…
3
votes
1 answer

MediaElement.Stop doesn't work when playing a live streaming source in windows store app

I want to make a Windows Store App play a live-streaming source. The source plays fine but I can't stop the source from playing once it has begun. When I call Stop() on the instance of Windows.UI.Xaml.Controls.MediaElement nothing happens. Below is…
3
votes
1 answer

WinRT C# Metro Play MediaElement Asynchronous

Im trying to build Win8 metro style application. Im trying to play remote video which is on web in media element. MediaElement media = new MediaElement(); Uri url = new Uri("some url on web"); media.Source = url; …