Flash Air 3.7 IOS mp4 videos not visible -


currently iam working on testapp flash air 3.7 ios ipad.

my app loads videos in h264 (mp4), works fine in desktop when publish ipad or in ipad simulator video not visible. habe packed video files in ios.

this function:

please many thanks

public function main()         {         stage.addeventlistener(stagevideoavailabilityevent.stage_video_availability, onavail);     }      private function onavail(e:stagevideoavailabilityevent):void     {         stagevideoavail = (e.availability == stagevideoavailability.available);         initvideo();     }      private function initvideo():void     {         var nc:netconnection = new netconnection();         nc.connect(null);         var ns:netstream = new netstream(nc);         ns.client = this;          if(stagevideoavail)         {             sv = stage.stagevideos[0];             sv.addeventlistener(stagevideoevent.render_state, onrender);             sv.attachnetstream(ns);             trace('available');         }          else          {             var vid:video = new video(1371, 771);             addchild(vid);             vid.attachnetstream(ns);             trace('not');         }          ns.play('cam9.mp4');     }  private function onrender(e:stagevideoevent):void         {             sv.viewport = new rectangle(0, 0, 1371, 771);         } 

are adding mp4 file included files list? (flash pro, publish settings, click on target spanner button, general tab, included files)


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -