阅读来自Facebook Live视频的流 [英] Read stream from Facebook Live Videos

查看:158
本文介绍了阅读来自Facebook Live视频的流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个服务器来为Facebook上的实时视频创建字幕.我使用Google Speech将声音转换为文本.但是,为此,我需要阅读facebook实时流.

I would like create a server to create subtitles for live videos on Facebook. I use Google Speech to convert sound to text. However, in order to do that, I need to read the facebook live streams.

使用带有me/live_videos的Facebook Live API,我得到以下响应:

Using Facebook Live API, with me/live_videos, I get the following response:

{
      "status": "LIVE",
      "stream_url": "rtmp://rtmp-api.facebook.com:80/rtmp/{id}",
      "secure_stream_url": "rtmps://rtmp-api.facebook.com:443/rtmp/{id},
      "embed_html": "<iframe src=\"https://www.facebook.com/video/embed?video_id={video_id}\" width=\"400\" height=\"400\" frameborder=\"0\"></iframe>",
      "id": "{id}"
    },

如何从上述链接中读取流?

How can I read the streams from the above links?

推荐答案

我认为现在无法从Facebook获取当前流.也许他们应该将此功能添加到其API中.

I figure out that there is no way to get the current stream from Facebook now. Maybe they should add this feature to their API.

这篇关于阅读来自Facebook Live视频的流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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