Skip to main content
Leafcutter
Inspiring
June 21, 2013
Question

Is it possible to flip stage video playback horizontally on iOS?

  • June 21, 2013
  • 1 reply
  • 686 views

I'm using stage video in an app to play back some video and it would be useful if I could offer users the option to flip the video along the horizontal axis. 

i.e. the equivalent of scaleX = -1 on a normal display object. 

The reason I want to do this is that the video is of people and flipping the video would flip their handedness (so right handers become left handers).

Is this possible?  It is quite easy to do with 'normal' video (i.e. scaleX = -1) but on iPad I am using stageVideo (primarily to try to maximse performance which I belive stageVideo does) and as it isn't a real display object it doesn't have the necessary scaleX property.

Does anyone know if this is possible?

This topic has been closed for replies.

1 reply

avtutorials
Known Participant
June 25, 2013

I'm using Flash CS6 and stageWebVideo (not stageVIdeo).  If you're asking if the video window can be changed when the device orientation is changed, this is how I did it:

// Landscape orientation

videoFile = MovieClip(root).imagesPath + "31_resources.pdf";

stageWebView = new StageWebView(); 

stageWebView.stage = stage;

if (stageOrientation == "horiz") {

stageWebView.viewPort = new Rectangle(((resolutionY-940)/2), 210, 940, 430);

}

// Then... when changed to Portrait orientation...

if (stageWebView != null) {

   stageWebView.viewPort = new Rectangle(0, 285, 640, (resolutionY - 285));

}

In other words, I change the stageWebView.viewPort rectangle accordingly when device orientation changes.  Not sure if this helps you.

Leafcutter
Inspiring
June 26, 2013

No I wasn't asking about resizing the video I want to display it flipped horizontally.  It is the same as setting scaleX = -1 on a normal display object but I don't think stage video allows you to do it.