在Windows Phone 8.1播放HLS(M3U8播放列表) [英] Playing HLS (m3u8 playlist) on Windows Phone 8.1

查看:317
本文介绍了在Windows Phone 8.1播放HLS(M3U8播放列表)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和一个朋友试图让视频播放器在Windows Phone 8.1中发挥M3U8流,但我们一直无法成功。

A friend and I have tried to get the video player on Windows Phone 8.1 to play a m3u8 stream, but we've been unavailable to succeed.

我们已经尝试:

我们已经尝试与playerframework.codeplex.com(微软播放器框架),但它无法加载该文件。

We've tried with playerframework.codeplex.com (Microsoft Player Framework), but it was unable to load the file.

我们也试图与Windows Phone的流媒体(的 https://phonesm.codeplex.com/ ),但我们无法尽可能使用这一个,因为我们不能让他们的文档的意义对我们如何真正得加载文件?

We also tried with Windows Phone Streaming Media (https://phonesm.codeplex.com/), but we were unable to as much as use this one as we couldn't make sense of their documentation on how we actually had to load the file?

有没有谁与此类型的文件前,任何人的工作?据我所知,M3U8本身并不由Windows Phone支持8.1

Is there anybody who have worked with this kind of files before? I understand that m3u8 is not natively supported by Windows Phone 8.1

推荐答案

下载播放器框架,消耗以下DLL的:

Download the player framework, consume the following DLL's:

播放器添加到您的XAML:

Add the player to your xaml:

xmlns:mmppf="using:Microsoft.PlayerFramework"
xmlns:smmedia="using:SM.Media.MediaPlayer"

 <mmppf:MediaPlayer IsFullScreenVisible="True" IsFullScreenEnabled="True" IsFullScreen="False"  CurrentStateChanged="mPlayer_CurrentStateChanged" x:Name="mPlayer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsFastForwardEnabled="False" IsInfoEnabled="False" IsLive="True" IsMoreEnabled="False" IsRewindEnabled="False" IsRightTapEnabled="False" IsScrubbingEnabled="False" IsSeekEnabled="False" IsSkipBackEnabled="False" IsSkipAheadEnabled="False" IsReplayEnabled="False" IsTimelineVisible="False" IsTimeElapsedVisible="False" IsTimeRemainingVisible="False" RequestedTheme="Dark">
            <mmppf:MediaPlayer.Plugins>
                <smmedia:StreamingMediaPlugin />
            </mmppf:MediaPlayer.Plugins>

        </mmppf:MediaPlayer>



然后设置您的流通过代码 - 或XAML如果URL永远不会改变。

Then set your stream VIA code - or XAML if the URL never changes.

这篇关于在Windows Phone 8.1播放HLS(M3U8播放列表)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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