如何使用 play & 在 php 中创建视频播放器全屏按钮?
我从互联网上获得了以下用于嵌入视频播放器的代码,但它没有播放/暂停按钮或全屏选项。
这是代码:
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=342
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="movie" VALUE="<?php echo $path.'/'.$_POST['file']; ?>">
<EMBED TYPE="application/x-mplayer2"
SRC="<?php echo $path.'/'.$_POST['file'];?>"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=342>
</EMBED>
</OBJECT>
请问有代码修复吗?
I have got the below code from internet for embedding a video player but it doesn't have play/pause button or fullscreen option.
Here is the code:
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=342
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="movie" VALUE="<?php echo $path.'/'.$_POST['file']; ?>">
<EMBED TYPE="application/x-mplayer2"
SRC="<?php echo $path.'/'.$_POST['file'];?>"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=342>
</EMBED>
</OBJECT>
Any code fix please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最好使用一些免费的基于 Flash 的播放器并将其嵌入到网站上,您在此处粘贴的这段代码 - 使用 Windows Media Player - 效果非常糟糕。
除此之外,它非常没有安全感。如果不过滤 _POST/_GET/
http:// www.longtailvideo.com/players/jw-flv-player/
Better use some free flash based player and embed this on the website, this code you have pasted here - with windows media player - works very badly.
Beside it's very insecure. Easy to do cross site scripting if you don't filter _POST/_GET/
http://www.longtailvideo.com/players/jw-flv-player/
用户可能需要插件才能在 Internet Explorer 以外的其他浏览器中显示媒体播放器。我建议您使用基于 Flash 的播放器。
http://www.longtailvideo.com/players
Users may need plugin to display media player in other browsers other than internet explorer. I recommend you to use a flash based player.
http://www.longtailvideo.com/players
添加控件
add controls