将 LiveStream 合并到 Android 应用程序中
Is there a way in incorporate a LiveStream (from http://www.livestream.com) in an Android app?
It seems that its possible to extract a m3u8 file, perhaps this is a viable route to go?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 livestream 提供的 RTSP 流,并使用意图操作 VIEW 打开它,这将使用默认播放器打开流。
要获取适当的 RTSP url,您应该向自定义 url 发送请求:
这将返回 XML 数据,您可以在此测试通道 url 中检查其结构 http://xlivestreamapi43x.channel-api.livestream-api.com/2.0/getstream ,然后您将在该字段中获得所需的 RTSP url androidURL。
You can use a RTSP stream provided by livestream, and open it with the intent action VIEW, which will open the stream with the default player.
To get the appropriate RTSP url, you should send a request to the custom url :
This will return a XML data, you can check its structure in this test channel url http://xlivestreamapi43x.channel-api.livestream-api.com/2.0/getstream , then you will have the desired RTSP url in the field androidURL.