如何在 flex 桌面应用程序中使用 actionscript 制作全屏视频 [英] How do I make a video full screen using actionscript in flex desktop application

查看:26
本文介绍了如何在 flex 桌面应用程序中使用 actionscript 制作全屏视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 flex 的 videoplayer 类播放 flv 视频.(它的所有属性都在运行时设置)

I am playing a flv video using the videoplayer class of flex. (all the properties of it are being set at runtime)

我想让视频全屏而不点击全屏按钮,即通过编程.

I want to make the video fullscreen without clicking on the fullscreen button i.e. through programming.

有没有可能.如果是,那么我该怎么做.?

Is it possible. If yes then how can I do this.?

推荐答案

从VideoPlayer的fullScreenButton调度点击事件.

Dispatch click event from the fullScreenButton of VideoPlayer.

yourplayer.fullScreenButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));

这篇关于如何在 flex 桌面应用程序中使用 actionscript 制作全屏视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆