Copy link to clipboard
Copied
Hi All
I hope you can help. I am currently working on a Ipad 1 app. This app contains video at 640x253 and smaller video at 392x155. I have compiled the app and had a look at it on the Ipad but it runs really choppy. Is there a specific compression I can use to make the playback smoother. I know I can use stage view but it is not ideal for what I need to do. i am aware air 2.7 has a lot more perfomance boost than 2.6 which I am currently using but when is it coming out? If anyone could advise that would be great.
regards Mike
Copy link to clipboard
Copied
I still haven't heard a better estimate than the "sometime in June" one for AIR 2.7. Meanwhile, the only way I know to get good performance for video in a Flash app on iPad is to use StageWebView. Then you can play H.264 movies at native speeds.
Copy link to clipboard
Copied
Hi Colin
Thanks for that is there a way to scrub through stageweb video as i need to scrub through it and pause and play the video. It that something i can do and where can i find information to do this?
regards Mike
Copy link to clipboard
Copied
This is the sort of code needed to play an embedded H.264 file:
import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.filesystem.File;
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);
var fPath:String = new File(new File("app:/moviename.mp4").nativePath).url;
webView.loadURL( fPath );
Once it's running you should be able to touch the video and see the controller.
Copy link to clipboard
Copied
Hi Colin
Thanks for that but is there a way to see the controls on start up?
regards Mike