我正在使用 Facebook 查询语言开发 iPad 应用程序。我们可以通过查询“video”表来获取用户的视频列表及其元数据。视频的元数据有:视频id、标题、描述、src、src_hq等。
现在,我想使用 src/src_hq 字段中给出的 URL 在 iPad 中播放 Facebook 视频。
- 这两个属性有什么区别呢?
- 我可以获得所有视频的 iPad 兼容 URL。即是否可以在 iPad 上播放 Facebook 的所有视频,包括上传的旧视频。
如果不可能,请提供将视频嵌入 HTML 的 Objective-C 示例代码。
问候,
迪帕
I am developing an iPad application using Facebook Query Language. We can get the list of videos of an user along with its meta data by querying the table "video". The meta data of the video are: video id, title, description, src, src_hq etc.
Now, I want to play the Facebook video in my iPad using the URL given in the field src/src_hq.
- What is the difference between these two attributes?
- Do I get iPad compatible URL for all the videos. i.e. is it possible to play all the videos of Facebook in iPad including old videos uploaded.
If not possible, could you please give the objective-C sample code that embeds the video in HTML.
Regards,
Deepa
发布评论
评论(1)
我很确定 Facebook 视频是 flv,您需要一个 Flash 播放器才能播放它们。因此,回答您的问题:
src
/src_hq
字段在 文档。src_hq
质量较高,最有可能用于全页类型视图,而src
则可能用于流等。话虽如此——尝试一下!查询表格,获取视频网址,下载并亲自观看。在 VLC 或类似工具中打开它,看看它是什么类型的视频并获取一些详细信息 - 然后将其发布到此处。
I'm pretty sure facebook videos are flv's and you'd need a flash player to play them. So to answer your question:
src
/src_hq
fields are described in the documentation. Thesrc_hq
one is higher quality, most likely for the full-page type view, while thesrc
one is likely used in streams and so on.With that said -- try it! Query the table, get a video url, download it and see for yourself. Open it up in VLC or some-such and see what kind of video it is and get some details -- then post them here.