如何在C#UWP应用程序中播放rtmp [英] how to play rtmp in c# UWP application

查看:60
本文介绍了如何在C#UWP应用程序中播放rtmp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Windows 10的C#通用应用程序中播放rtmp流?链接:rtmp://live.video.asandl.com/devices//tv3-300k.stream

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

使用MediaElement可以播放 http://live.tv.asandl.com:1935/devices/tv3-300k.stream/chunklist_w1286632381.m3u8 (直到昨天才起作用,他们将流方法更改为rtmp),但没有机会播放rtmp.

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.

谢谢

推荐答案

您可以使用用于Windows的FFmpegInterop库在UWP应用中播放rtmp流.

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

要为MediaElement创建适当的MediaStreamSource,应使用方法 FFmepgInteropMSS.CreateFFmpegInteropMSSFromUri .

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

此处有更多详细信息:使用FFmpegInterop对象.

More details here: Using the FFmpegInterop object.

这篇关于如何在C#UWP应用程序中播放rtmp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆