`FullScreenTakeOver` 属性不起作用:如何在全屏投影仪中使 FLVPlayback 脱离全屏模式?

发布于 2024-10-02 13:34:55 字数 547 浏览 2 评论 0原文

我的时间轴上有一个 FLVPlayback 组件(第 4 帧左右),并且我的 Flash 投影仪正在全屏模式下运行。问题是我似乎无法使我的 FLVPlayback 组件不处于全屏模式,同时又使我的舞台处于全屏模式。

这是为什么呢?我该如何修复它?

编辑:

我希望投影仪处于全屏模式,并且 FLVPlayback 不处于全屏模式。

编辑2:

我正在Flash CS5中制作一个交互式投影仪。投影仪打开,将视频加载到第一帧的 FLVPlayback 组件中。由于某种原因,FLVPlayback 组件不会接管屏幕。 (我在视频加载之前调用了 flv.fullScreenTakeOver = false;。也许这就是原因?)

但是,当我尝试在不同的帧(第 4 帧)中使用 FLVPlayback 组件时,视频播放器接管屏幕,播放视频时仅显示黑屏。它会忽略 fullScreenTakeOver = false

这里可能出了什么问题以及如何修复它?

I have an FLVPlayback component on my timeline (frame 4 or so), and my Flash Projector is running in fullscreen mode. The problem is that I can't seem to make my FLVPlayback component NOT be in fullscreen mode and at the same time, have my stage in fullscreen mode.

Why is this? How do I fix it?

EDIT:

I want the projector to be in fullscreen mode, and the FLVPlayback to not be in fullscreen.

EDIT2:

I'm making an interactive projector in Flash CS5. The projector opens, loads a video into an FLVPlayback component in the first frame. For some reason, that FLVPlayback component does not take over the screen. (I've called flv.fullScreenTakeOver = false; before the video loads. Maybe that's why?)

However, when I try to use an FLVPlayback component in a different frame (frame 4), the video player takes over the screen, showing only a black screen while playing the video. It ignores the fullScreenTakeOver = false.

What could be wrong here and how do I fix it?

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

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

发布评论

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

评论(1

哽咽笑 2024-10-09 13:34:55

FullScreenEvent

UPD: 工作(但非常简单)wonderfl.net 上的示例
我检查输入框架,但这确实太频繁了:

video.addEventListener(Event.ENTER_FRAME, updSize);
private function updSize(e:Event = null):void{
   video.width = stage.displayState == 'fullScreen' ? smallVidWidth : bigVidWidth;
   video.height = stage.displayState == 'fullScreen' ? smallVidHeight : bigVidHeight;
}

恕我直言,总是可以知道何时更改显示状态,但即使使用计时器也会更好进入框架

it's rather easy to resize the Video instance to e.g. 25% of stage size on FullScreenEvent

UPD: working (but very simple) example on wonderfl.net
i check on enter frame, but it's really too often:

video.addEventListener(Event.ENTER_FRAME, updSize);
private function updSize(e:Event = null):void{
   video.width = stage.displayState == 'fullScreen' ? smallVidWidth : bigVidWidth;
   video.height = stage.displayState == 'fullScreen' ? smallVidHeight : bigVidHeight;
}

imho it's always possible to know when the displayState is changed, but even using a timer would be better then enterframe

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