Streaming RTSP or M3U8

Topics: Windows 8 Xaml
Jun 8, 2013 at 6:56 AM
Hi,

I'm trying to stream either an RTSP or M3U8 audio stream but am having difficulty in doing so.

Currently, I have the app set up to use the Player Framework and Smooth Streaming.
xmlns:mmppf="using:Microsoft.PlayerFramework"
xmlns:adaptive="using:Microsoft.PlayerFramework.Adaptive"

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <mmppf:MediaPlayer Source="http://ms1.clickhere2.com/live/883jia/playlist.m3u8">
            <mmppf:MediaPlayer.Plugins>
                <adaptive:AdaptivePlugin />
            </mmppf:MediaPlayer.Plugins>
        </mmppf:MediaPlayer>
    </Grid>
The Source can also be "rtsp://ms1.clickhere2.com/live/883jia" or "http://ms1.clickhere2.com/live/883jia/chunklist.m3u8".

When run, I am told that "The video failed to play".

Any ideas how I can stream? Thanks.
Coordinator
Jun 18, 2013 at 4:35 PM
m3u8 is the format used in HLS (Apple's Http Live Streaming) and is not supported natively by Windows 8. However, there are ways to make HLS work with Windows 8 (and therefore with the player framework) but you need a 3rd party library. Here's another thread with additional details.

The story with RTSP is similar. Here's another thread on StackOverflow about this format with Windows 8.

Note: The player framework relies on the Windows 8 native capabilities to playback media. Any format outside of the supported list of formats can be handled by custom Media Foundation Extensions. For example, this is how smooth streaming is supported.