Home >
Article > Backend Development > Code used by php web player to play online videos (automatically determine and select the video file type)_PHP Tutorial
Code used by php web player to play online videos (automatically determine and select the video file type)_PHP Tutorial
WBOYOriginal
2016-07-21 15:37:011486browse
In web development, we often encounter some simple video playback functions, but now the video format is different and can be added dynamically, so we must save the video to the data. Okay, let's take a look at the simple paragraph I wrote. php video web playerCode.
Copy code The code is as follows:
include './admin/connect.php'; @extract($db->get_one("select * from movieinfo where id='".$_GET['id']."'")); $db->query("update movieinfo set playnum=playnum+1 where id='".$_GET['id']."' "); //控制下载 $url2="admin/";//存放软件的路径 if($localaddress) { $newname=$localaddress; $movieurl=$url2.$newname; } ?>
}elseif(eregi(".swf$",$movieurl)) { //played by flashplayer ?>
} ?>
http://www.bkjia.com/PHPjc/322013.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322013.htmlTechArticleIn web development, we often encounter some simple video playback functions, but now the video format is different and can Dynamic increase, so we have to save the video to data, okay...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn