简体   繁体   English

如何在 C# UWP 应用程序中播放 rtmp

[英]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?我想知道如何在 Windows 10 的 c# 通用应用程序中播放 rtmp 流? link: rtmp://live.video.asandl.com/devices//tv3-300k.stream链接: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.使用 MediaElement 我可以播放http://live.tv.asandl.com:1935/devices/tv3-300k.stream/chunklist_w1286632381.m3u8 (直到昨天才工作,他们将流方法更改为 rtmp)但没有机会播放 rtmp .

thanks谢谢

You can use FFmpegInterop library for Windows to play rtmp streams in UWP apps.您可以使用适用于 Windows 的 FFmpegInterop 库在 UWP 应用中播放 rtmp 流。

To create appropriate MediaStreamSource for MediaElement you should use method FFmepgInteropMSS.CreateFFmpegInteropMSSFromUri .要为 MediaElement 创建适当的 MediaStreamSource,您应该使用FFmepgInteropMSS.CreateFFmpegInteropMSSFromUri方法。

More details here: Using the FFmpegInterop object .此处有更多详细信息: 使用 FFmpegInterop 对象

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM