Flex 3 NetStream video rotation

Why should I rotate a video stream?

Well if you’d like to make some video upload application, let’s assume someone makes a video with it’s phone. The case with a video camera is not the same, almost every camera adjusts it’s rotation correctly, but when it comes to your mobile not always the video contains information about the rotation.

The problem is when the user uploads a rotated video, how I’d rotate it back on the correct position when playing it with a simple FLV player.

The answer is so simple!

You can just use this simple chunk of code:

...
_video = new Video();
_video.rotation = 90;
...

and thus you can rotate the video with several degrees.

Related posts:

  1. Video sites must use … mp4 and only mp4!
  2. Check YouTube Video Existence with Zend_Gdata_YouTube
  3. HTML5 video support. Detecting, playing and progressive enhancement!
This entry was posted in flex 3, micro tutorial and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">