在Mozilla Firefox下调用mplayerPlug-in播放视频时,如何实现全屏? 你可以用width和height虽然没有最大化但至少是全屏了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function vidchangesize(setting) { var stopPressed=0; //改变现在的状态到全屏幕的播放方式 if (stopPressed==0) { if (setting==3){ alert('您即将进入全屏幕的视频显示模式。\当影片播放完,或按 \'ESC\'键可以返回普通模式。'); document.vid.SetFullScreen(); document.vid2.SetFullScreen(); }else{ document.vidclip.DisplaySize = setting; } } }</script><span onclick="javascript:vidchangesize(3);"><font color=red>全屏播放,按ESC恢复</font></span>http://community.csdn.net/Expert/topic/2905/2905371.xml?temp=.1251795这个帖子上搬过来的呵呵 to yiyioo(天一) 用width,height这个方法我试过了,可是它只改变边框大小,播放影片的大小还是没有变。至于你说的第二个方法,我在Mozilla下的mplayerPlug-in下也不行。 :( 试试这个呢document.getElementById("video").SetFullScreen(); to fangzhe()不行啊,mplayerplug-in里面的确有SetFullScreen()这个函数。但是它的javascript接口里面没有这个函数。以下是mplayerplug-in里面提供的javascript接口函数及属性:#include "nsISupports.idl"[scriptable, uuid(f728830e-1dd1-4444-6666-fb9f414f2465)]interface nsIScriptableWMPPlugin : nsISupports{ void play(); void pause(); void stop();};[scriptable, uuid(f728830f-1dd1-4444-6666-fb9f414f2465)]interface nsIScriptableMplayerPlugin : nsISupports{ void Play(); void Pause(); void Stop(); void quit(); void DoPlay(); void DoPause(); void FastForward(); void FastReverse(); void ff(); void rew(); void rewind(); void Seek(in double value); void Open(in string filename); double getTime(); double getDuration(); double getPercent(); attribute string filename; attribute boolean ShowControls; attribute boolean fullscreen; attribute boolean showlogo; readonly attribute long playState; readonly attribute nsIScriptableWMPPlugin controls;};ps:免费的东西就是不好啊 :( 唉,可能是mplayerplug-in本身有问题。算了,还是结贴吧 :( JQuery插件中设置属性的变量 循环滚动条javascript脚本,遇到多表嵌套时候的问题 静态页面 层和层之间的传值问题!!! 将以下js代码改成点击后才显示数据的格式,谢谢~ select下拉选框的值没有选中也会触发onchange,请问为什么 这个网站技术怎么实现的,菜鸟求助. 为什么window.history[0]取不到上一个访问的url? 如何把动态生成表中n个下拉框和n个文本框记录保存下来? 求教web打印问题 新手提问:能否让FileSystemObject获得本地文件操纵权限? 请教 fason,给onclick事件赋处理函数的问题 请教:csdn的导航树问题。
var stopPressed=0;
//改变现在的状态到全屏幕的播放方式
if (stopPressed==0) {
if (setting==3){
alert('您即将进入全屏幕的视频显示模式。\当影片播放完,或按 \'ESC\'键可以返回普通模式。');
document.vid.SetFullScreen();
document.vid2.SetFullScreen();
}else{
document.vidclip.DisplaySize = setting;
}
} }
</script><span onclick="javascript:vidchangesize(3);"><font color=red>全屏播放,按ESC恢复</font></span>http://community.csdn.net/Expert/topic/2905/2905371.xml?temp=.1251795
这个帖子上搬过来的
呵呵
用width,height这个方法我试过了,可是它只改变边框大小,播放影片的大小还是没有变。
至于你说的第二个方法,我在Mozilla下的mplayerPlug-in下也不行。 :(
document.getElementById("video").SetFullScreen();
不行啊,mplayerplug-in里面的确有SetFullScreen()这个函数。但是它的javascript接口里面没有这个函数。
以下是mplayerplug-in里面提供的javascript接口函数及属性:
#include "nsISupports.idl"
[scriptable, uuid(f728830e-1dd1-4444-6666-fb9f414f2465)]
interface nsIScriptableWMPPlugin : nsISupports
{
void play();
void pause();
void stop();
};[scriptable, uuid(f728830f-1dd1-4444-6666-fb9f414f2465)]
interface nsIScriptableMplayerPlugin : nsISupports
{
void Play();
void Pause();
void Stop();
void quit();
void DoPlay();
void DoPause();
void FastForward();
void FastReverse();
void ff();
void rew();
void rewind();
void Seek(in double value);
void Open(in string filename);
double getTime();
double getDuration();
double getPercent();
attribute string filename;
attribute boolean ShowControls;
attribute boolean fullscreen;
attribute boolean showlogo;
readonly attribute long playState;
readonly attribute nsIScriptableWMPPlugin controls;
};
ps:免费的东西就是不好啊 :(
算了,还是结贴吧 :(