如何在全屏模式下将 Android 平板电脑浏览器 Flash 影片锁定为横向

发布于 2024-12-12 19:19:12 字数 252 浏览 1 评论 0原文

我有一个 as3 内置的 osmf 视频播放器 swf,我们将其嵌入到标准 HTML 页面上。
当您触摸图像时,视频会自动全屏显示并开始播放。
Droid 和 Flash 在全屏模式下在横向和纵向之间来回切换后经常会中断。(我所说的中断是指冻结,您可以在其中听到视频并使用控件,但一切都只是静止的冻结图像,重绘失败)。

您可以在 html、javascript 中锁定全屏方向吗?还是必须尝试在 swf 中处理它?<​​br>
感谢您的帮助!

I have an as3 built osmf video player swf that we embed on a standard HTML page.
When you touch the image the video automatically goes fullscreen and begins playing.
Droid and Flash often break after changing back and forth between landscape and portrait while in fullscreen.(by break I mean freeze, where you can hear the video and use the controls, but everything is just a still frozen image, the redrawing fails).

Can you lock the fullscreen orientation in html, javascript, or do you have to try to handle it inside the swf?

Thanks for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情徒 2024-12-19 19:19:12

首先,确保您使用的是 Flash Player 10.1.105.6 或更高版本。该版本已成功添加锁定方向(http://kb2.adobe.com/cps/ 860/cpsid_86018.html)。

之后,就像将舞台的 autoOrients 属性设置为 false 一样简单。

Stage.autoOrients = false;

并手动指定方向:

Stage.setOrientation(StageOrientation.ROTATED_RIGHT);

还有其他舞台属性可以列出可用的方向或测试是否可以进行切换。它们都在 Stage as3 参考中。

(http://help.adobe. com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#autoOrients)

(http://help.adobe.com /en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#setOrientation())

First of all, ensure you're using Flash Player 10.1.105.6 or later. Locking orientation was successfully added in that version (http://kb2.adobe.com/cps/860/cpsid_86018.html).

After that it should be as easy as setting the autoOrients property of the Stage to false.

Stage.autoOrients = false;

And manually dictating the orientation:

Stage.setOrientation(StageOrientation.ROTATED_RIGHT);

There are other Stage properties that can list what orientations are available or test if switching is possible. They're all in the Stage as3 reference.

(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#autoOrients)

(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#setOrientation())

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文