.rotation on Video() only works on videos smaller than 5mb. Bug, any workarounds?
UPDATE: Found some reliable reproduction on my end.
Shorter videos tend to rotate just fine, longer videos tend to not rotate but become parallelograms. All on one build. Is there perhaps some metadata tags I need to add to my videos?
UPDATE: Found more reliable repro.
.mp4 files smaller than 5mb have no problem rotating, .mp4 files over 5mb do not rotate, they only skew.
Using standard netstream/netconnection/video setup for streaming video, any mp4 files over 5mb will not rotate when using video.rotation
Videos larger than 5mb skew by the number of degrees you specify, but not rotate.
Videos smaller than 5mb rotate by the number of degrees, and do not skew
100% reproducable on my end: Win 7 x64, Flash Pro CS6 (12.0.2.529), testing on PC and several android devices of varying make/model.
Questions:
-Is this air for android specific?
-Is there a workaround?
-Does this happen on screen rotate too? (It happens when rotating the entire swf, when rotating the parent, and when rotating the parent's parent.)
-Does this happen with older versions of Air for Android, and/or actionscript?
OLD THREAD:
This has been very problematic for me.
When I try to use video.rotation = 90; in code, rather than rotating the video 90 degrees, it disappears. But this only happens sometimes when I publish. I can make zero changes, clear publish cache, and sometimes it is broken like this, sometimes it isn't and works perfectly fine. I can't figure out what is changing to make it compile differently. I've tried in all render modes (publishing to Android, so: Direct, CPU, GPU, Auto) with no changes in this specific behavior.
I've tried putting the video inside of a movieclip, and rotating the movieclip only, and it still occurs.
I've tried directly copy/pasting another successfully rotating item's code to video, same problem still occurs.
I've tried re-ordering it, and putting rotation before and after x/y/w/h changes, removing x/y/w/h changes, same problem.
Restarting my computer usually fixes the problem for 1-2 solid publishes before it starts happening again.
The code is located towards the bottom of this post.
I've tried changing the rotation to 45, and I figured out how the video disappears, but not why. video rotation goes from rotating the whole video, to only moving the right-most points, and creates a parallelogram.
(Height and Width are pre-established variables, with values partaining to the overall container size, which is not always 768*432 ratio)
video.x = Width;
video.y=0;
video.width = Height;
video.height = video.width/768*432;
video.rotation=90;
Please tell me I am just missing something incredibly simple here, and that this is not a bug.