admin管理员组文章数量:1023738
I need to know how it's possible to force playing a video in fullscreen mode?
Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.
The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.
Hope to understand this thing a bit more clearer with your support.
chris
I need to know how it's possible to force playing a video in fullscreen mode?
Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.
The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.
Hope to understand this thing a bit more clearer with your support.
chris
Share Improve this question asked Mar 18, 2011 at 14:52 ChrisBenyaminChrisBenyamin 1,7285 gold badges22 silver badges39 bronze badges1 Answer
Reset to default 2you can tell the Flash stage to go to fullscreen view with this mand:
stage.displayState = "fullScreen";
It will work in standalone mode only.
To make it work in the browsers you have to pass the "allowFullScreen" parameter with a "true" value to Flash.
To go fullscreen in mobile devices I believe you have to use the
FSCommand("fullscreen", "true");
method call.
If you are using SWFObject the you can add the allowFullScreen param easily.
SWFObject -2:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "400", "8", "#336699");
so.addParam("wmode", "opaque");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("allowFullScreen", "true");
so.write("flashcontent");
</script>
SWFObject 2+:
<script type="text/javascript">
var wl = new Object();
wl.flashvars = {};
wl.params = {
allowScriptAccess: "sameDomain",
allowFullScreen: "true",
wmode: "opaque"
};
wl.attributes = {};
swfobject.embedSWF("movie.swf", "flashcontent", "400", "400", "8", "swf/expressInstall.swf", wl.flashvars, wl.params, wl.attributes);
</script>
I hope it helps, good luck Rob
I need to know how it's possible to force playing a video in fullscreen mode?
Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.
The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.
Hope to understand this thing a bit more clearer with your support.
chris
I need to know how it's possible to force playing a video in fullscreen mode?
Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.
The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.
Hope to understand this thing a bit more clearer with your support.
chris
Share Improve this question asked Mar 18, 2011 at 14:52 ChrisBenyaminChrisBenyamin 1,7285 gold badges22 silver badges39 bronze badges1 Answer
Reset to default 2you can tell the Flash stage to go to fullscreen view with this mand:
stage.displayState = "fullScreen";
It will work in standalone mode only.
To make it work in the browsers you have to pass the "allowFullScreen" parameter with a "true" value to Flash.
To go fullscreen in mobile devices I believe you have to use the
FSCommand("fullscreen", "true");
method call.
If you are using SWFObject the you can add the allowFullScreen param easily.
SWFObject -2:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "400", "8", "#336699");
so.addParam("wmode", "opaque");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("allowFullScreen", "true");
so.write("flashcontent");
</script>
SWFObject 2+:
<script type="text/javascript">
var wl = new Object();
wl.flashvars = {};
wl.params = {
allowScriptAccess: "sameDomain",
allowFullScreen: "true",
wmode: "opaque"
};
wl.attributes = {};
swfobject.embedSWF("movie.swf", "flashcontent", "400", "400", "8", "swf/expressInstall.swf", wl.flashvars, wl.params, wl.attributes);
</script>
I hope it helps, good luck Rob
本文标签: javascriptHow to force playing a video in fullscreenStack Overflow
版权声明:本文标题:javascript - How to force playing a video in fullscreen? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745536858a2155000.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论