mediaelement

What formats does the MediaElement support?

冷暖自知 提交于 2019-11-30 13:53:14
In C# what formats does the MediaElement support? Below is a rollup list of formats codecs supported by the MediaElement . These encodings are supported regardless of the file name extension. Source: https://msdn.microsoft.com/en-us/library/cc189080(v=vs.95).aspx Video Raw Video RGBA format Uncompressed 32 bit Alpha Red, Green, Blue. On Windows Phone 7, the alpha channel is ignored. YV12 format- YCrCb(4:2:0) Uncompressed YCrCb(4:2:0). Not supported on Windows Phone 7. RGBA - 32 bit Alpha Red, Green, Blue Windows Media Video and VC-1 formatsWMV1: Windows Media Video 7 Supports Simple, Main, and

MediaElement and RTSP

爱⌒轻易说出口 提交于 2019-11-30 10:09:32
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, does MediaElement support RTSP? I'm working with WPF on .NET 4.0. VLC has comprehensive support for RTSP (through live555 library), while support in Windows Media Player is limited. You might want to check this article on MSDN: Supported Media Formats, Protocols, and Log Fields . Supported Codecs Below is a rollup list of formats codecs supported by the

Global MediaElement that continues playing after navigating to other page

邮差的信 提交于 2019-11-30 07:39:18
I am using a MediaElement to play music in my metro app. I want the Music keeps playing even if I navigate to another Page. In the following Thread that question was asked also: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/241ba3b4-3e2a-4f9b-a704-87c7b1be7988/ I did what JimMan suggested 1) In App.xaml.cs Changed the control template of the root frame to include the MediaElement var rootFrame = new Frame(); rootFrame.Style = Resources["RootFrameStyle"] as Style; rootFrame.Navigate(typeof(HomePage), MainViewModel.Instance); Window.Current.Content = rootFrame; Window

Binding a progressbar to a mediaelement in wpf

北慕城南 提交于 2019-11-30 05:17:33
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: <Window x:Class="TestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="627" Width="889"> <Grid> <MediaElement Margin="152,8,140,41" Name="mediaElement1" MediaEnded="mediaElement1_MediaEnded" Visibility="Hidden" /> <ProgressBar Height="23" Margin="152,8,10,0" Name="mp3PlayingProgressBar"

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

独自空忆成欢 提交于 2019-11-30 03:51:46
问题 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 回答1: You need to create a new EventListener for the ended and pause events. Example: YourMediaElement.addEventListener('ended', function(){ //Your Code goes here }); Update: This method should be applied on the success handler of creating the element, as is shown in the example on the bottom of the page at MediaElementJS.com

What formats does the MediaElement support?

不打扰是莪最后的温柔 提交于 2019-11-29 19:17:57
问题 In C# what formats does the MediaElement support? 回答1: Below is a rollup list of formats codecs supported by the MediaElement . These encodings are supported regardless of the file name extension. Source: https://msdn.microsoft.com/en-us/library/cc189080(v=vs.95).aspx Video Raw Video RGBA format Uncompressed 32 bit Alpha Red, Green, Blue. On Windows Phone 7, the alpha channel is ignored. YV12 format- YCrCb(4:2:0) Uncompressed YCrCb(4:2:0). Not supported on Windows Phone 7. RGBA - 32 bit Alpha

Media element Rewind

匆匆过客 提交于 2019-11-29 17:07:40
In my application, I play a video file using the MediaElement control, and I need to have fast forward and rewind options. For fast forward, I increased the SpeedRatio , but how can I implement fast rewind? I want to play the video in reverse (in appropriate speed ratio). You could set the MediaElement.ScrubbingEnabled property to true, and pause the MediaElement, and then periodically change its MediaElement.Position property backwards to mimic the rewinding behaviour. 来源: https://stackoverflow.com/questions/10880331/media-element-rewind

How to Play Transparent background avi file in media element?

笑着哭i 提交于 2019-11-29 17:02:07
I have a video with transparent background in .avi format (Made from Adobe After Effects), but the transparent background appears black in mediaelement. Media Player has no background property also. What should i use so that this media element plays the file and when placed on an image takes that image as its background. (No i cannot embed that image in the avi file as my image keeps changing). *If my approach is wrong please let me know. I'm afraid using the normal wpf media player this can't be done. The mediaplayer ignores the transparent regions, even with video formats that accept it.

MediaElement and RTSP

末鹿安然 提交于 2019-11-29 15:18:11
问题 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, does MediaElement support RTSP? I'm working with WPF on .NET 4.0. 回答1: VLC has comprehensive support for RTSP (through live555 library), while support in Windows Media Player is limited. You might want to check this article on MSDN: Supported Media

MediaElement not playing audio from stream WP7

我只是一个虾纸丫 提交于 2019-11-29 12:24:31
string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm.AutoPlay = true; mm.Volume = 0.7; mm.Play(); But no changes, the adudio not starts.How I can resolve this? You need to add your MediaElement to your VisualTree before playing it, since you're creating it in the codebehind. For example, assuming you have LayoutRoot and that your url is correct, this should work. string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm