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.
精彩评论