【发布时间】:2017-05-03 01:01:09
【问题描述】:
我想创建一个服务器来为 Facebook 上的实时视频创建字幕。我使用 Google Speech 将声音转换为文本。但是,为了做到这一点,我需要阅读 facebook 直播。
使用 Facebook Live API 和 me/live_videos,我得到以下响应:
{
"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}"
},
如何从上述链接中读取流?
【问题讨论】:
-
您使用什么 API 添加实时字幕?
-
@pexea12 试试我的答案。您绝对可以使用它来读取流。
标签: facebook-graph-api streaming live-streaming facebook-live-api