来自 Facebook 的流媒体视频

发布于 2024-12-24 17:54:15 字数 119 浏览 1 评论 0原文

我想将视频从 Facebook 流式传输到我的网站,并使用我自己的自定义视频播放器(例如 flowplayer)来播放它。基本上我想访问注册用户的视频并在我的应用程序中播放它们。是否可以?如果是的话,我怎样才能实现这一目标?

I want to stream a video from Facebook to my site and use my own custom video player (flowplayer for instance) to play it. Basicly I want to access the registered user's videos and play them in my application. is it possible? If it is, how can I achieve that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2024-12-31 17:54:15

相当简单,但有几个步骤需要完成。

  1. 使用用户 access_token 从 Graph API me/videos 获取他们的视频列表
  2. 向用户展示他们的视频列表,让用户选择要观看的视频。
  3. 对于所选视频的 id,调用 Graph API 和 FQL srcsrc_hq,为您提供视频 mp4 的链接
  4. 将您的自定义播放器指向 mp4 链接。

Fairly easy, but there are a few steps to go thru.

  1. Grab a list of their videos from the Graph API me/videos using their user access_token
  2. Present user with list of their videos, let user select video to watch.
  3. For the id of the video selected, call the Graph API and FQL the src or src_hq which gives you the link to the mp4 of the video
  4. Point your custom player to the mp4 link.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文