Home  >  Article  >  Backend Development  >  php如何实现视频在线播放

php如何实现视频在线播放

不言
不言Original
2018-05-15 11:07:5920589browse

如题,我在弄一个可以播放视频的页面,是服务器端的,用php如何能实现呢?

回复讨论(解决方案)

只能是动态调用视频地址 

在客户端的插件中进行播放 
和语言没关系 
不知道是不是这个意思

你可以通过html版本的flash播放器 

 <p id="player3"> 
 <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p> 
 <script type="text/javascript"> 
 var s1 = new SWFObject("flvplayer.swf","single","300","170","7"); 
 s1.addParam("allowfullscreen","true"); 
 s1.addVariable("file","videos /ld.Flv");//这边是视频在本地的路径 
 s1.addVariable("image"," videos/ld.jpg");//这边是你的视频的截图 
 s1.addVariable("width","300"); 
 s1.addVariable("height","170"); 
 s1.write("player3"); 
 </script>

通常是用flv 播放器。 我现在选用的是 jwplaer ,youtube 前期也用这个。。~

3楼的就可行!

html5中可以

都是好方法,值得去试看就知道了

你可以直接把视频的这段html代码弄过来。 

<embed src="http://player.youku.com/player.php/sid/XNDc4NDU1NjAw/v.swf" 
allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" 
type="application/x-shockwave-flash"></embed>

 ,搞个层,点击时候,弹出这个视频。

上传到优酷直接调用不好么?

何谓服务器端

通常是用flv 播放器。 我现在选用的是 jwplaer ,youtube 前期也用这个。。~ 
 可否讲得具体些,具体是怎么用的呢

只有这些方法吗?还有其他的吗???

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