actionscript 3 - Netstream video not playing on iPad -


i building ipad app using flash cs6 compile air 3.3 on pc.

one of app requirements video player can overlaid other display element - subtitles.

i using netstream play mp4 video (have tried flvplayer same results).
works fine when compiled run in emulator, video doesn't play once installed on test device - ipad 3.
(i did simple test few months ago , got video playing correctly audio, cs5.5, air 3.1, ipad 2. return setup, need support ipad3...)

so, couple of quick questions first...
same problems?
know if has changed on ios blocks air playing video?

i usual netstream / netconnection stuff pass file.url netstream.play().
here guts of code:

var nc:netconnection = new netconnection(); var ns:netstream; var vid:video = new video(); var videofile:file; videofile = file.applicationdirectory; videofile = videofile.resolvepath(config.video_directory + 'myvideo.mp4'); nc.connect(null); ns = new netstream(nc); ns.addeventlistener(netstatusevent.net_status, onnetstatus, false, 0, true); ns.client = this; // handle onmetadata & onxmpdata vid.attachnetstream(ns); vid.smoothing = true; addchild(vid); ns.play(videofile.url); 

publish settings are:

hardware acceleration :: level 2 - gpu (have tried direct)
render mode :: gpu (have tried direct)
device :: ipad
resolution :: high (have tried standard)
included files :: app.swf, app.xml, assets directory video / images (images load fine) (tried including .mp4 directly rather in directory, no difference)

can of help?

ok, fixed.

the above code correct (works perfectly), video file wrong.

i still don't understand why, , welcome response, have switched .flv formatted video , works fine.

the file testing encoded ipad , ran fine when played in air on desktop, , when imported ipad , played natively.

any insight encoding presets (i running adobe media encoder) mp4 interesting.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -