Max resolution for video in Flash - actionscript-3

I'm working on a standalone app that displays high-resolution video with other movie clips. I am using Flash FLVPlayback component. Not sure what is the max dimensions of video that can be played in Flash?
I'm trying to display a locally stored MP4 video with the dimensions of 5760 x 1080, which is well under the max canvas area limit, but is not displaying properly. I can see a green rectangle where the video should be displayed.

Related

Youtube embedded player video size issue

We have implemented embedded youtube player in our flash application which is written in action script 3.
We are facing a issue with the display of video. After clicking on play button the video size is displaying 1/4 of the display and shifting to the top left corner of the player display leaving the remaining space as blank.
Reference used for implementing embedded youtube player.
https://developers.google.com/youtube/flash_api_reference
Kindly suggest.
Thanks
From the Iframe API itself, in setting the player size, you should use this:
player.setSize(width:Number, height:Number):Void
It sets the size in pixels of the player. This method should be used instead of setting the width and height properties of the MovieClip. Note that this method does not constrain the proportions of the video player, so you will need to maintain a 4:3 aspect ratio. The default size of the chromeless SWF when loaded into another SWF is 320px by 240px and the default size of the embedded player SWF is 480px by 385px.
Or you can change the width and height value inside the . You can try it here.

Why does my AS3 Video scrubber work in Preview and FP10 but not when published to Air?

I have coded an as3 class in Flash Pro to make an flv video pan backwards and forwards as the user drags the mouse left and right over the video sprite. (The video is an orbit of a building so the effect is to spin the building around with the mouse). The video has been loaded to a DisplayObject using Greensock's LoaderMax.
It all works fine in Flash Player 10 and the preview, but won't pan when published to Air 2 for desktop on windows. Video just jumps to the final position on mouseUp. Would this most likely be a limitation of Air? if so, why does the preview work? Any suggestions greatly appreciated.

Flash CS4 - can I increase FLV-video playing speed by AS3?

There is a cycled video in a background loaded in Movie Clip. Is it possible to increase flv-video playing speed(in a certain moment) by AS3?

Flash AS3 erratic scrubber

Introduction
I made a video player that plays .mp4 files. It is based upon the FLVplaybackcomponent 2.5 in Flash Pro CS 5. It's basically a component with a movieclip interface (not a skin). the video plays fine, play/pause works and all that jazz.
Problem
The scrubber is erratic.
It seems to only be able to scrub in 10 second intervals and often behaves oddly (jumping to wrong locations).
All I seem to be doing is to take the total video time. Applying that time to a slider component so minimum is 0 and maximum is total video time. Then when the user changes the slider value it sets the playheadtime equal to the slider value.
If I trace out the values it seems fine, but the playheadtime is misbehaving.
If the slider displays 16 seconds and the playhead is made equal to 16 seconds it seems to snap at the closest 10 second interval.
Source
Here is a test file showcasing the problem:
http://rosefalk.dk/stuff/temp/stackoverflow/videoplayer_no_js.html
Here is the source with video and .fla: http://rosefalk.dk/stuff/temp/stackoverflow/stackoverflow-scrubberproblem.zip
BONUS
HTML players in some browsers seem to have no problem scrubbing the file.
The video service used (DigiZuite) seems to re-encode the video with keyframes every 10 seconds. Re-encoding the video with keyframes every second fixed the problem (small video so it was VERY noticeable).

YouTube video loaded into Flash MovieClip, can I get width and height?

I'm trying to load a YouTube video on a flash MovieClip using url
http://www.youtube.com/v/4nRNoXT_gUc that returns the video with player directly.
the video is loaded and i can manage it with his player, the problem is when i try to position it no the stage, because I don't know his width until it starts.
I've tested it with Event.ENTER_FRAME but when the video starts it return width = 10000
how can i do to know his width or height?
You can retrieve the movie's nominal width and height through the loader's contentLoaderInfo object. Just try the following :
trace(loader.contentLoaderInfo.width);
The nominal width and height of your movie is 640x480. You will notice, however, that the movie is being scaled down (probably by YouTube, would need to be confirmed).
Also, be aware that what is returned by YouTube is an AVM1Movie object. An AVM1Movie object is an SWF that was compiled under ActionScript 2 (in YouTube's case, most likely Flash version 8). The interaction that is possible with an AVM1Movie object is much more limited than that of a regular AS3-based swf file.