Search code examples
c#win-universal-apprtmp

how to play rtmp in c# UWP application


i wanna know how can i play rtmp streams in my c# universal application for windows 10? link: rtmp://live.video.asandl.com/devices//tv3-300k.stream

with MediaElement i can play http://live.tv.asandl.com:1935/devices/tv3-300k.stream/chunklist_w1286632381.m3u8 (its not working till yesterday , they changed stream method to rtmp) but no chance on playing rtmp.

thanks


Solution

  • You can use FFmpegInterop library for Windows to play rtmp streams in UWP apps.

    To create appropriate MediaStreamSource for MediaElement you should use method FFmepgInteropMSS.CreateFFmpegInteropMSSFromUri.

    More details here: Using the FFmpegInterop object.