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

查看:38
本文介绍了在 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(Microsoft Player Framework),但无法加载文件.

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?

有没有人以前处理过这种文件?我了解 Windows Phone 8.1 本身不支持 m3u8

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>

然后设置您的流 VIA 代码 - 如果 URL 永远不会更改,则设置为 XAML.

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

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

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