soso music web player php web player code used to play online videos automatically determines and selects the video file type

WBOY
Release: 2016-07-29 08:42:54
Original
1452 people have browsed it

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 player code.

Copy the code The code is as follows:


include './admin/connect.php';
@extract($db->get_one("select * from movieinfo where.$_GET['id']."'"));
$db->query("update movieinfo set playnum=playnum+1 where.$_GET['id']."' ");
//控制下载
$url2="admin/";//存放软件的路径
if($localaddress)
{
$newname=$localaddress;
$movieurl=$url2.$newname;
}
?>


<?=$title?>-在线播放 jb51.net


//MediaPlayer播放
if (eregi(".mid$",$movieurl) || eregi(".avi$",$movieurl) || eregi(".asf$",$movieurl) ||eregi(".asx$",$movieurl) || eregi(".wmv$",$movieurl) || eregi(".wma$",$movieurl))
{
?>
















}elseif(eregi(".ra$",$movieurl)|| eregi(".mp3$",$movieurl) || eregi(".rm$",$movieurl) || eregi(".ram$",$movieurl) ){
//RealPlayer播放的
?>
































}elseif(eregi(".swf$",$movieurl)) {
//played by flashplayer
?>




< ;/object>
}
?>

The above introduces the code used by the soso music web player php web player to play online videos to automatically determine and select the video file type, including the content of the soso music web player. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!