开发者

Is it possible to grab the direct flv link from youtube embed code via php?

I have a custom flash player which requires a flv file url to work. So if someone posts a youtube video embed code, will it be possible to find the direct flv link from that? if there isn't, what would be my b开发者_高级运维est alternative to handle this situation?


Use a thin web client or cURL through PHP to load up the embed URL.

From the returned page grab the string containing "videoplayback" - this will be the direct link to the FLV file, with all the params appended.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜