本帖最后由 shawn82 于 2011-8-7 23:11 编辑
原本的youtube播放时没有全屏幕的按钮(我这个是gbk的)修改后就有全屏幕按钮了
把红色的
}elseif('youtube.com' == $host) {
$content = file_get_contents($link);
preg_match_all("/og:image\" content=\"(.*?)\">/i",$content,$img);
preg_match_all("/title\" content=\"(.*?)\">/i",$content,$title);
$title = diconv($title[1][0], 'UTF-8', 'GB18030');
preg_match_all("/description\" content=\"(.*?)\">/i",$content,$message);
$message = diconv($message[1][0], 'UTF-8', 'GB18030');
preg_match_all("/v\=([\w\-]+)/", $link, $matches);
if(!empty($matches[1][0])) {
$geturl = $matches[1][0];
$geturl = "http://www.youtube.com/v/".$geturl."?version=3&hl=zh_TW";
} 换成
/".$geturl."?fs=1&hl=zh_TW";
|