Facebook videos and iPad compatibility
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 includ开发者_高级运维ing old videos uploaded.
If not possible, could you please give the objective-C sample code that embeds the video in HTML.
Regards, Deepa
I'm pretty sure facebook videos are flv's and you'd need a flash player to play them. So to answer your question:
- The
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. - I doubt you will get a URL to a video that will work on the iPad. Probably not for new videos and probably not for 'old' videos either.
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.
精彩评论