如何在网页中禁用媒体播放器控件 [英] how to disable the media player control in webpage
本文介绍了如何在网页中禁用媒体播放器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用媒体播放器控件,例如播放按钮,静音按钮等...
这是我的代码
How to disable the media player controls such as play button,mute button etc...
this is my code
<object height="320px" width="240px" type ="video/x-ms-wmv">
<param name="src" value="video\video.mpeg" />
<param name="AutoStart" value="0" />
<param name="ShowControls" value="false" />
<param name="ShowStatusBar" value="false" />
<param name="ShowDisplay" value="false" />
</object>
我只想显示视频......因为我正在使用加载按钮,播放按钮,暂停按钮和停止按钮
或者如果我暂停视频,则在文本框中获取视频的(当前)时长
我正在使用播放按钮播放视频
I want to display only video...... because i am using load button,play button,pause button and stop button
or if i pause the video get the (current) duration of the video in text box
I am using play button to play the video
function Play ()
{
x = Player.playState;
if (x == 2) {
Player.controls.play();
}else{
Player.uiMode = "none";
Player.URL = "video\\Traffic motion detector.avi";
}
}
如果我按下播放按钮,则媒体播放器控件将被禁用.....但是我想在页面加载时禁用媒体播放器控件...
请帮助我.....
if i press the play button the media player controls are disabled....but i want to disable the media player controls when the page load.....
pls hlp me.....
推荐答案
使用<param name="uiMode" value="none"/>
BTW ShowControls = false可以正常工作.您实际上想要什么行为?
Use <param name="uiMode" value="none"/>
BTW ShowControls = false work fine. What behavior do you want actually?
在asp.net网页上禁用Medial播放器控件
disable medial player controls in asp.net web page
window.onload = function loadw()
{
Player.uiMode="none";
}
这篇关于如何在网页中禁用媒体播放器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文