• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Video publish settings on Flash timeline for iPhone?

Guest
May 08, 2011 May 08, 2011

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

TOPICS
Development

Views

5.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 23, 2011 May 23, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2011 May 09, 2011

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);

which gives quarter sized video, and the Full Screen button in the controller works correctly, and pressing Done shrinks the video back down again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 01, 2011 Jun 01, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2011 Jun 01, 2011

Copy link to clipboard

Copied

Try webView=null;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 02, 2011 Jun 02, 2011

Copy link to clipboard

Copied

With the two lines...

webView.stage = null;

webView = null;

Works fine, thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 02, 2011 Jun 02, 2011

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines