PLay M3U8 on Windows Phone

情到浓时终转凉″ 提交于 2019-12-05 03:00:01

You need to read and parse the m3u8 file (it's a simple text file). Then stream the parsed Uri(s).

After more research i found out that m3u8 is a format supported by APPLE.

Unfortunately we cannot play the m3u8 files on windows phone directly.

Rather we can use the streaming media framework to play .manifest files. The .manifest files are generated by the SMOOTH STREAMING MEDIA SERVER. .manifest files are equivalent of m3u8 files. It is also a playlist file just like the m3u8 file.

SMOOTH STREMAING SERVER, is a part of windows media servies that works on a IIS server.

You can use Windows Phone Streaming Media free library, it worked fine for me, there is a blog post about it:

3ivx live streaming 3ivx although this is not free

First add reference.

xmlns:local="clr-namespace:Microsoft.PlayerFramework;assembly=Microsoft.PlayerFramework"
xmlns:smmedia="clr-namespace:SM.Media.MediaPlayer;assembly=SM.Media.MediaPlayer.WP8"


<local:MediaPlayer Name="player"
               HorizontalContentAlignment="Stretch"
               AutoPlay="True"
               Volume="0.7"
               Source="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"
               IsPlayPauseVisible="True">
    <local:MediaPlayer.Plugins>
        <smmedia:StreamingMediaPlugin />
    </local:MediaPlayer.Plugins>
</local:MediaPlayer>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!