xamarin tvos 直播 [英] xamarin tvos live broadcast
问题描述
我尝试在 xamarin.tvos 应用上播放直播视频,但没有找到任何解决方案(我看到了所有直播解决方案).
I try to play live broadcast video on xamarin.tvos app, but not found the any solution(i see all live streaming solutions).
如何在 xamarin.tvos 应用上播放直播视频(例如 rtmp)?
How to play live broadcast video(ex. rtmp) on xamarin.tvos app?
谢谢大家.
推荐答案
Apple 在其操作系统(iOS、tvOS、macOS)中本身不支持 RTMP(实时消息传递协议).原生支持 HTTP Live Streaming (HLS) (RFC8216).
Apple does not natively support RTMP (Real Time Messaging Protocol) in their OSs (iOS, tvOS, macOS). HTTP Live Streaming (HLS) is natively supported (RFC8216).
有数量的第 3 方 RTMP 库(OSS、双许可和商业/专有)可用于各种 Apple 操作系统.
There are a number of 3rd-party RTMP libraries (OSS, dual license and commercial/proprietary) that will work on the various Apple OSs.
几个例子:
- SGPlayer(LGPL,因为它使用 FFMPEG)
- VideoKit(双重许可/GPL 和商业版)
- VLC (GPL)
- SmarterStreaming(双许可)
- 等等……
更多库的所有核心转码都在 C/C++/ObjC 中完成(有些具有 Swift 框架包装器),因此您可以通过 Xamarin.iOS
绑定库.Google/Bing 是您的朋友...
There are many more libraries with all the core transcoding done in C/C++/ObjC (some have Swift framework wrappers) so you can consume them via a Xamarin.iOS
binding library. Google/Bing is your friend...
这篇关于xamarin tvos 直播的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!