mediaelement

MediaElement Markers Missing in WPF

放肆的年华 提交于 2019-12-24 07:52:37
问题 I see that there is a Markers Property on the MediaElement, but this seems to be available to the Silverlight MediaElement, not the WPF MediaElement? Can you help me with what I'm missing? I'm trying to add Markers to a WPF MediaElement, to play a video and show popups based on the timeline. What should I be using in place of the Missing Markers collection? Thank you for your help. 回答1: There are two aspects to your question depending on what you actually intended - please note that the

Playing media file from Isolated Storage in windows phone?

戏子无情 提交于 2019-12-24 03:35:38
问题 I need to play music file from the isolated storage. i did by this way, MediaElement media = new MediaElement(); using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile(FileName, FileMode.Open, FileAccess.Read)) { media.SetSource(fileStream); media.Play(); } } I can't play the music file. When i created media element Xaml and set source that element this works fine. The problem

Make MediaElement same as HTML5 video

穿精又带淫゛_ 提交于 2019-12-24 00:39:57
问题 As is shown here: How do I get mediaelement.js player state (paused, volume, etc.)? you can access MediaElement attributes by simply adding 'media' to the instance and then you can get the api described here:http://mediaelementjs.com/#api. But how do I make it so that the 'media' wont be necessary, making the MediaElement api exactly(almost) the same as that of the html5 video? 回答1: You can access API methods (as HTML5 video) but not properties or events , which still need to refer to the

Change Source in MediaElement (SILVERLIGHT)

自古美人都是妖i 提交于 2019-12-23 19:41:26
问题 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 source but just won't start. What could possibly be wrong with this code? 回答1: Try setting MyMediaElement.AutoPlay to true, as soon as the source changes it should play. You could also investigate using the MediaElement.SetSource() method which takes

UWP MediaElement source from http with authentication

一世执手 提交于 2019-12-23 01:13:12
问题 Is there a way to use a MediaElement Control, to stream e.g. a video or audio file from a remote (web)server, which needs authentication for accessing? To access this server, i am using Windows.Web.HttpClient, but i dont know how to easily access the source with a MediaElement. Best regards 来源: https://stackoverflow.com/questions/37540437/uwp-mediaelement-source-from-http-with-authentication

WPF media formats

妖精的绣舞 提交于 2019-12-22 05:15:07
问题 Does WPF have built-in support for any audio and video formats? I'm going to be using the MediaPlayer and MediaElement classes to build a little media player, and for now, I don't want to have to deal with codecs and formats that .NET doesn't have native support for. 回答1: WPF supports the video formats WMV, MPEG and some AVI files by default, but since it has Windows Media Player running beneath, WPF can use all the codecs installed for it 来源: https://stackoverflow.com/questions/6158650/wpf

WPF media formats

假装没事ソ 提交于 2019-12-22 05:15:02
问题 Does WPF have built-in support for any audio and video formats? I'm going to be using the MediaPlayer and MediaElement classes to build a little media player, and for now, I don't want to have to deal with codecs and formats that .NET doesn't have native support for. 回答1: WPF supports the video formats WMV, MPEG and some AVI files by default, but since it has Windows Media Player running beneath, WPF can use all the codecs installed for it 来源: https://stackoverflow.com/questions/6158650/wpf

Google Chrome does not want to play mp4 using mediaelement.js

女生的网名这么多〃 提交于 2019-12-22 04:17:27
问题 I'm using the latest mediaelement.js on my website to play html5 video. There is something strange in Google Chrome. He plays one video, but doesn't want to play the other video in mp4 format and doesn't fallback to webm. Both videos were converted with ffmpeg with this params: ffmpeg -i input.mov -acodec libfaac -ab 96k -vcodec libx264 -vpre slower -vpre main -level 21 -refs 2 -b 345k -bt 345k -threads 0 -s 640x360 output.mp4 Besides, the first video plays normally without using mediaelement

How to stream Webcam in WPF?

坚强是说给别人听的谎言 提交于 2019-12-21 09:32:28
问题 Can I stream a live video in WPF application from my web cam? If yes, then How? 回答1: You will have to use DirectX Capture or something (is not in WPF right know, so use DirectX API's directly). Look at: WPF Media Kit. It can grab the Vista Windows desktop manager DirectX Direct3D shared Surface, and use it as a visual brush in WPF. He does some nice things with it. Look at his blog where he explains it. I hope this helps you on your way... UPDATE 2009-11-06: The VideoRenderElement Codeplex

How to know which video formats my WPF application can play?

回眸只為那壹抹淺笑 提交于 2019-12-19 08:27:33
问题 I have a small application that allows the playback of videos. First off, I do not restrict the user to select particular types of file. What I want to do is make sure I can play the file the user selected. How do I get a list of available codecs, or query the playback qualities of the WPF application (the MediaElement control)? The alternative proposed is to convert any selected input file to a uniform format (for example, MPEG) before it's played, but that seems to be more difficult. 回答1: