在SmoothStreamingMediaElement中播放(.m3u8) [英] Play (.m3u8 ) in SmoothStreamingMediaElement

查看:216
本文介绍了在SmoothStreamingMediaElement中播放(.m3u8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序可以播放( .m3u8)直播,我发现这个例子:DemoPlayer



它适用于其他链接但如果我尝试我的.m3u8链接它不起作用。是否有一种特定的方式在Windows手机中播放这种类型的流媒体?



I want my application to play (.m3u8) Live Streaming , i found this example: DemoPlayer

It works with other links but if i try my .m3u8 link it does not work. Is there a specific way to play that type of streaming in windows phone?

public MainPage()
{

InitializeComponent();
SupportedOrientations = SupportedPageOrientation.Landscape;
Loaded += new RoutedEventHandler(MainPage_Loaded);
phoneApplicationPage.ManipulationStarted += new EventHandler<ManipulationStartedEventArgs>(phoneApplicationPage_ManipulationStarted);
phoneApplicationPage.ManipulationCompleted += new EventHandler<ManipulationCompletedEventArgs>(phoneApplicationPage_ManipulationCompleted);
seekbar.MouseLeftButtonUp += new MouseButtonEventHandler(seekbar_MouseLeftButtonUp);

List<Content> Contents = new List<Content>();
Contents.Add(new Content("Media One", new Uri("http://fl1.viastreaming.net/iqraatv2/livestream/playlist.m3u8")));
Contents.Add(new Content("Media Two", new Uri("http://Media_Two.ism/manifest")));
Contents.Add(new Content("Media Three", new Uri("http://Media_Three.ism/manifest")));
Contents.Add(new Content("Media Four", new Uri("http://Media_Four.ism/manifest")));

comboBoxUrls.ItemsSource = Contents;
comboBoxUrls.SelectedIndex = 0;
comboBoxUrls.SelectionChanged += new SelectionChangedEventHandler(comboBoxUrls_SelectionChanged);
}




推荐答案



实际的WP8版本不支持m3u8格式。

但由于m3u8是非常常见的格式,我们可以希望在将来的WP8更新中考虑这种格式。

最好的问候

克劳斯


这篇关于在SmoothStreamingMediaElement中播放(.m3u8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆