PLay M3U8 on Windows Phone

2019-04-22 21:26发布

问题:

I have been searching for ways to play an M3U8 media live stream on WIndows Mobile using the media framework.

Kindly share any info on this.

回答1:

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



回答2:

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.



回答3:

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



回答4:

3ivx live streaming 3ivx although this is not free



回答5:

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>