Skip to main content
Participating Frequently
July 6, 2011
Question

What video format to export for Ipad Apps

  • July 6, 2011
  • 6 replies
  • 6802 views

Hi,

I am new in export flash to ipad. I tried to export my video as FLV for my ipad apps, it plays but its lagging or jerky.

I had tried other formats like mp4, f4v, m4v or mov it just doesn't play

Wonder if anyone knows what video format to export for my ipad apps?

Bruce

http://www.vmw.com.sg

This topic has been closed for replies.

6 replies

Known Participant
July 12, 2011

I've got the FLV Playback component working on my iPad playing an FLV published out with AIR for iOS 2.7 CPU.

The video looks great and runs without any lag.

As soon as I include a skin, such as one included with flash the video doesn't play on my iPad. For example:

flvPlayback.skin = "SkinUnderPlaySeekMute.swf";

My guess is because it's a SWF? But I'm not sure. Anyone know how I go about getting controls for my FLV Playback on the iPad?

Thanks

Known Participant
July 12, 2011

care to share how u managed with flv playback?

tks

Known Participant
July 13, 2011

florin22xxl@yahoo.com, on an iPad, here's what I did to get the FLV loading and taking up (most) of the screen. You can't use the FLV Component skins so you have to use the UI Components as markc888 suggested below your comment. My only gripe with this solution is that I can't get the fullScreen button to make the video go full screen.

This is starts from a playVideo button on my stage.

playVideo.addEventListener(MouseEvent.CLICK, playVideoClick);

function playVideoClick(event:MouseEvent):void {

var flvPlayback:FLVPlayback = new FLVPlayback();

flvPlayback.x = 62;

flvPlayback.y = 62;

flvPlayback.width = 900;

flvPlayback.height = 506;

flvPlayback.fullScreenTakeOver = true;

flvPlayback.autoPlay = true;

flvPlayback.source = "yourMovie.flv";

flvPlayback.bufferTime = .1;

addChild(flvPlayback);

flvPlayback.playPauseButton = playPauseBtn_mc;

flvPlayback.stopButton = stopBtn_mc;

flvPlayback.seekBar = seekBar_mc;

var closeMovie:yourMovieClip = new yourMovieClip();

addChild(closeMovie);

closeMovie.x = 977;

closeMovie.y = 77;

closeMovie.addEventListener(MouseEvent.CLICK, closeMovieClick);

function closeMovie(event:MouseEvent):void {

flvPlayback.stop();

removeChild(flvPlayback);

removeChild(closePres);

}

}

Hope it helps...

Participating Frequently
July 7, 2011

This is what I am going to do,

http://www.obilia.com/ipm/bbgm001.html

Participating Frequently
July 7, 2011

Performance worst means the whole apps is getting more lag & jerky.

I had revert back to the version which is without the video and I tried publish it using:

Flash CS5, Doesn't lag, but cannot use StageWebView.
Flash CS5.5, can use StageWebView but very lag & jerky.

Participating Frequently
July 6, 2011

I was using flash CS5 to export, but now i tried on flash CS5.5, the script works, but new problem came in.

The file which I exported from flash CS5.5 performance is worst than the 1 exported I in flash CS5. Though the video running smooth.

Colin Holgate
Inspiring
July 6, 2011

Worse in what way?

Participating Frequently
July 6, 2011

Thx,

I was using flash CS5 to export, but now i tried on flash CS5.5, the script works, but new problem came in.Which is my who application lags except the video part doesn't.

relaxatraja
Inspiring
July 6, 2011

I'm not get  you, draw your stagewebview rectangle according to your need.

relaxatraja
Inspiring
July 6, 2011

Use stagewebview to load the videos in mp4 format, copy and paste the below code and it will give the output on ipad.

import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.filesystem.File;
import flash.utils.Timer;
import flash.events.TimerEvent;

stop();

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

attach the mp4 while packaging. The advantage of this using the native player support without any lags.

Known Participant
July 6, 2011

isnt air 2,7 sdk suposed to play video without any lags?i see people still sugesting stagewebview ,what about some sugestions on playing flv without this?

tks