Copy link to clipboard
Copied
Hi,
I'm trying to embed video on the timeline to do a short intro to a game app. The video is an FLV in the library and I have it embeded in the timeline. Published at 500kbs I get so much studder on the iPhone 4.. even when I publish it at half size frame.
Any chance with running full frame hd video through flash? any suggestions?
Thanks,
Dani
Copy link to clipboard
Copied
You could look for a deactivate event, and if it happens you could assume that the user doesn't want to watch the rest of the intro video.
Perhaps the default background color of a stagewebview is white. It may be worth trying the video embedded in html, that has a background color set.
Copy link to clipboard
Copied
Ok, I figured it all out.
There is a hackish workaround you have to do, and also it won't work in Test Movie. With this timeline code:
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:/MyMovie.mp4").nativePath).url;
webView.loadURL( fPath );
it will build and play fine on the iPad or iPhone. Assuming you added the video file to the package too.
I also tried it at a smaller size:
webView.viewPort = new Rectangle(0,0,stage.stageWidth/2,stage.stageHeight/2);
Copy link to clipboard
Copied
Hi, the stageWebView video is working for me but... When the video is playing and I go to another frame in flash timeline, the audio still playing, inclusive calling "webView.stage = null".
Any idea to solve this?
Copy link to clipboard
Copied
Try webView=null;
Copy link to clipboard
Copied
With the two lines...
webView.stage = null;
webView = null;
Works fine, thanks.
Copy link to clipboard
Copied
Do you get the white screen before the vioed starts to play? I've tried both ways (with direct paht and HTML) and I get the white screen in both. Any sugestions?