开发者

Flex Video Player fullscreenButton override

I'm using mxml to create a spark video player with controls. When I click on the "fullscreen" button in Chrome, it goes full screen on the browser but I am unable to go back to normal size. In Internet Explorer, the whole screen is filled up but the zoom on the video is too big and thus my controls are no longer visible.

Is there any way that I can use ActionScript to control the size of the fullscreen? How would convert the mxml to Actionscript to override this?

Thanks!

Source code from: Flex Video Player

The code I'm using to create the player:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="ht开发者_高级运维tp://ns.adobe.com/mxml/2009" 
xmlns:s="library://ns.adobe.com/flex/spark">
<s:VideoPlayer 
    source="video.flv"
    horizontalCenter="0"
    verticalCenter="0"
    autoPlay="false" />
</s:Application>


You can try to constrain the area for fullscreen display using stage's fullScreenSourceRect property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜