如何在iOS和android中实现YouTube LiveStream播放器? [英] How can I implement YouTube LiveStream player in iOS and android?

查看:183
本文介绍了如何在iOS和android中实现YouTube LiveStream播放器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的iOS和android应用程序实现简单的直播. 我可以使用youtube.com录制直播,并在我的应用中将其作为常规视频进行广播.我不想实现沉重的SDK或构建平台来实现此目的.

I want to implement a simple livestream to my iOS and android apps. I can use youtube.com to record the livestream, and broadcast it as a regular video in my apps. I don't want to implement heavy SDKs or build a platform to do so.

什么是最佳选择?

遇到过-kickflip.io,livestreamsdk.com,ustream.tv等. 对于前两个,您必须设置整个过程.我在考虑是否可以像YouTube播放器那样简单地嵌入其中,以播放广播.

Have come across - kickflip.io, livestreamsdk.com, ustream.tv, etc. With the first 2, you have to setup the whole thing. While I was thinking if I can simply embed like a Youtube player which will show the broadcast.

推荐答案

使用Youtube Player提出了解决方法.使用嵌入在webview中的youtube和使用SDK的youtube播放器进行了尝试,效果很好.为了现场直播的目的,需要添加一些手动控件以更好地进行处理,但其余控件则运行流畅. 使用Wirecast将媒体流(广播)流式传输到Youtube,而youtube的rtmp几乎可以处理其余的内容.

Made a way out using Youtube Player. Tried both using youtube embed in webview and youtube player using SDK, and it worked just fine. Some manual controls were required to be added to better handle for the live streaming purpose, but the rest worked smooth. Used Wirecast for streaming the media (broadcasting) to Youtube, and youtube's rtmp handles the rest nearly.

这篇关于如何在iOS和android中实现YouTube LiveStream播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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