!124 添加腾讯视频的支持

Merge pull request !124 from 他乡启程/master
This commit is contained in:
他乡启程 2017-11-02 16:18:19 +08:00 committed by Discuz!
parent be9391a6d0
commit 4144f6e3f5
1 changed files with 6 additions and 0 deletions

View File

@ -667,6 +667,12 @@ function parseflv($url, $width = 0, $height = 0) {
$imgurl = trim($image[1]);
}
}
} elseif(strpos($lowerurl, 'v.qq.com/x/page/') !== FALSE) {
if(preg_match("/https?:\/\/v.qq.com\/x\/page\/([^\/]+)(.html|)/i", $url, $matches)) {
$vid = explode(".html", $matches[1]);
$flv = 'https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?vid='.$vid[0];
$iframe = 'https://v.qq.com/iframe/player.html?vid='.$vid[0];
}
}
if($flv) {
if(!$width && !$height) {