AIR for iOS, Getting HTML5 Video to Autoplay in a StageWebView?

Hi all,
The video performance I get from the built in FLV video is pretty poor. I'm considering using a StageWebView to display a HTML5 page with a standard <video> in it.
The video shows up and (if I enable controls) can be played and it looks great (much better than FLV). The only issue is I cannot find a way to have the video autoplay once the StageWebView is loaded.
I've set the <video .... autoplay> parameter. I've also tried using JavaScript to send a video.play() (after the window load event is complete and the DOM is ready).
Has anyone figured this out?
I can't wait for AIR3.0 so we can just use StageVideo.. But for now I'm using AIR2.7 via Flash CS5.5 publishing for an iPad2 via AIR for iOS.
Thanks for any tips!

This was a pretty old post. In the advent of StageVideo it doesn't really matter anymore. StageVideo is GPU and you can autoplay all you like.
BTW there was an old project I'm unsure if it still exists but it was called StageWebViewBridge (SWVB) that reconnected AS3 and JS. You could call methods in JavaScript right from ActionScript the same way fscommand/externalInterface works. So you could force the video to start playing using that.

Similar Messages

  • AIR for iOS getting error while uploading the app, ITMS-9000 "Missing Provisioning Profile"

    hi!
    I get this error, when uploading the binary to Itunes. Any help, on how to solve out this problem ? And what does it mean ?

    for install on devices, you need to use a distribution cert. and a distribution provisioning profile for adhoc. When ready for AppStore you can use same distribution cert. but distribution provision profile for appstore. i completely use Windows PC for my entire process and use testflight to distribute to my testers. I'm not sure how the process is for simulator on the Mac is.  I just the use mac to create my certs and profiles and then application loader.
    When you tried upload to testflight did u use a distribution cert (p12) and an adhoc distibution provisioning profile. Also are the devices you are sending to are also registered to that profile.
    Also ive been doing this for 3 years now but consider myself a newbie still cuz I'm self taught and still learning and my ways of doing things in an unorthodox way but on average I have about 10 uploads of updates or new apps to the AppStore a year and haven't had an app rejected. These forms will be your best resource of info with users like @colin.

  • Open link from air for ios in safari

    Is it possible to open a link from stagewebview in safari? This is regarding AIR for iOS.

    I'm actually using stagewebviewbridge which extends stagewebview (but is much more excellent). it's got js to as and as to js communication and some other stuff that stagewebview can't do.

  • How to record a time-limited video with Adobe AIR for iOS

    I am trying to record a time-limited video with Adobe AIR for iOS.
    For example, I want to implement the following function. Start a one-minute timer before launching CameraUI to record video. When the timeout event happens after one minute, stop recording video, close the CameraUI view and obtain the video data so far.
      I have several questions related to that.
      1. How to stop recording video from outside the CameraUI view(in this case, from the timeout event handler) and then close the CemeraUI view? As far as I know, to close the CameraUI view, the only way is to press the [Use Video] button or the [Cancel] button from inside the CameraUI view. Is it possible to close it from outside?
      2. Even if the first problem mentioned above is solved, then how can I get the video data so far(in this case, the video data before the timeout). I know that normally we can get a MediaPromise object from MediaEvent parameter of the  complete handler, and read the video data from the MediaPromise object. But obviously in this case, we can not access the MediaPromise object just because the complete handler itself will not be executed since the [Use Video] button is not pressed.
      3. Is it possible to add a stopwatch to show possible remaining recording time when CameraUI view is open? It seems that the CameraUI automatically uses the full screen of iOS device(in my case, iPad) and there is no extra space to show the stopwatch.
      Are there any solutions or workarounds about the three problem above? I really appreciate it if anyone has any idea about this. Thanks in advance.

    You'd have more control by using the Camera object, showing the camera on a video object inside a Sprite, and capturing that. Then you could put whatever graphics alongside it on the stage.. I've used FlashyWrappers in a test to capture the video to the library.  It took some work, but the test worked well...
    Flash/AIR record videos of your apps and games: Rainbow Creatures

  • Uploading AIR for IOS thru Application Loader I get the following error - The package does not contain an Info.plist.

    I'm publishing an .fla in AIR for IOS.
    I'm in CC 2014 so first I need to know which AIR should I publish in?
    newest is AIR 14.0.0.178 for IOS
    IOS deployment type is App Store
    publishes with no error.
    I see the following files included .swf and app.xml
    I convert the .ipa to a zip file
    Upload that thru the Application Loader I get the following error
    The package does not contain an Info.plist.
    Where is the infoplist for this and do I convert the .ipa and the info to a zip file?
    I converted the .ipa to a .zip and the intoplist file is NOT THERE  how do I generate this?
    Any help here?

    Ok this is becoming very very frustrating as I have been at this for hours now. So the only way to explain this is to write what I did step by step as I have to be doing something wrong, just to recap:
    I was publishing from Flash CC 2014 using AIR 14.0 and getting Digital Certificate is not valid message.
    Was instructed to download new AIR 17 , I did this installed into Flash and used to publish.
    I used my previous p12, app ID and distribution certificates all generated properly.
    The file worked ONCE but I got an app ID error ( I understood I used the wrong app ID)
    I changed it to the right app ID and the very next time and after 10 attempts I got the same error  Digital Certificate is not valid
    SO I then downloaded AIR 16.0
    RE DID ALL MY CERTIFICATES AND P12'S
    went to publish and I STILL GET THE SAME MESSAGE   Digital Certificate is not valid

  • Video in air for ios

    i created a sipmle app  with air for ios in flash cs5.5 which includes only short video which was imported using "import video". when testing it in "control\test movie\ test " it works perfrct, however when i sync it to my iphone device with itunes - i see icon and when i push it - the movie not shown - why?

    i have added the .flv
    can you see if it had been done ok?

  • [AIR to iOS] Reading 'included' video file with NetStream, possible?

    Hey all,
    During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
    I can get a full reference to the file ala the usual and use .url or .nativePath:
    var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
    When I try to pass that into a NetStream such as:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    ns.play(videoFile.url);
    This never works for me. Nor using:
    ns.play(videoFile.nativePath);
    Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!

    I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
    The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
    Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
    ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
    You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory.

  • Playing HLS stream using OSMF in Air for IOS

    Is there any sample app (source) that shows how to play HLS streams using AIR for IOS, that the OSMF team can make available?
    I am running into issues trying to get this to work as outlined here. http://forums.adobe.com/message/4013821#4013821
    TIA,
    - Abey

    Thanks to everyone who replied.
    The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
    (more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l#play%28%29)
    1. Progressive download
    2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works)
    Updated Matrix is :
    FMS 4.5 H.264 Streaming test matrix
    RTMP
    HDS
    HLS
    HTTP Progressive Download
    AIR for Android
    Yes
    Yes
    No
    Yes
    AIR on Windows (Desktop)
    Yes
    Yes
    No
    Yes
    AIR on IOS
    No
    No
    Yes
    Yes
    Safari Browser on IOS
    No
    No
    Yes
    No

  • Can I use macbook air for ios app development?

    I would like to know if i can use macbook air for ios app development or macbook pro is only option?

    Just to reinforce what shldr2thewheel says - be very sure what size memory you want if you get a Macbook Air. There is *no* way to change after purchase. My advice is to go for the 4GB option - especially if you want to do app development.
    The internal storage (solid state drive) of the Air can be upgraded if required but it will probably be an expensive option. If you don't think the storage will be enough then maybe using a USB connected drive to hold non-essential files is an option.
    As to deciding between the Air and Pro you are basically making a decision between portability (Air) and expandability/bigger screens (Pro). What is more important to you?
    Mark

  • How to reduce suttering in Air for iOS GPU mode?

    My game currently runs at 60FPS on iPad 2 and has no problem regarding rendering speed but I'm rather annoyed by constant stuttering which causes the game to stop for 0.1-0.5 sec  once in a while. The stuttering behavior is similar to when garbage collector is ran and I supposed it is casued by GPU memory swapping as my game uses lots of bitmapdata.
    Problem is that my game transits one scene to another scene seamlessly without stopping animations in the game screen by letting old game scene sliding out of the screen and new scene sliding in. So there's no time to preload/precache graphics assets used in the new scene. After transitting different scenes a few times, the game starts stuttering when trying to show new images.
    My game works fine without stuttering on old PCs but on iPad2 it is quite obvious. Could anyone tell me some tips to reduce stuttering when using Air for iOS? In the game, all vector graphics are pre-drawn to bitmapdata(so no vector graphics are shown) and the size of graphic assets each scene has is about 2048*1024 pixels. There are about 10 scenes. On top of that, there are common interface graphic assets which are used in all scenes and the size is about 30x 400*400 pixels.
    I know the game uses quite a lot of graphic resources. Making the game preload the assets before transitting to a new scene will eliminate stutter but I'd still like to see if I can keep the seamless scene transition on iOS.
    I'm currently using Air3.5 + Flash CS6.
    * I mean preloading/precaching by actually displaying( addChild and visible=true)  them on stage and make time for GPU to cache. All the actual graphic data are already loaded.

    Some things that might help:
    I've heard that textures are uploaded as square textures on iOS. I'm not certain that really happens, but if it does then having two 1024x1024 textures would be better than one 2048x1024, because that would end up actually taking 2048x2048.
    Bitmaps are sent to the GPU when they first hit the stage, and it takes a significant amount of time for them to get there. If you are timeline animating a transition to the next scene, stagger the graphics that are going to be appearing next. That is, before you start to move on to the next area have the biggest bitmap of the next are already touching the edge of the stage. It can be invisible, or underneath another graphic, it will still get uploaded. But if you tween in all of the graphics exactly when they are needed, they will take a while to upload.
    Dispose of the bitmaps that are no longer in the scene. I think your stuttering is because you're going into a new area that has a lot of new graphics, and the GPU still has the bitmaps from the current scene and the one before that, and so has to spend time freeing up the memory before taking the new bitmaps. If you had already disposed of them the GPU might not need to clear memory for you.
    There is System.gc(). That will force the system to garbage collect, which you could do at moments that there isn't anything animating.

  • Unicode characters appear as      (boxes) in AIR for IOS

    I am developing an application for iPhone and it has an input Text box. (Placed on stage from flash CS6). In the Desktop emulator everything works fine. But, on the actual phone, everything I type appears as       . But surprisingly, when I am inputting the text, (i.e. the textbox is in edit mode) the characters are displayed correctly. But as soon as I leave the box it appears as       . Is there someway I can display the text the same way it is displayed during the edit mode?
    I am trying to input Devanagari देवनागरी characters.
    P.S. I did some research on this and found that, if I specify the  font for the textbox = "DevanagariSangamMN" then there is some improvement.
    I say improvement becasue althought the boxes       are replaced by actual characters , they aren't correctly formated.
    For e.g. during edit mode the text appears as this: कार्यकर्ता
    But as soon as I leave the textbox it appears as this: कार्यकर्ता (I typed this here by adding special unicode characters ZWNJ so that characters won't join)
    Anyway, I don't like the idea of having to specify font names? What If some user would like to input chinese, how would I know what chinese font to use?
    Isn't there some way to let IOS handle things, (just like how it handles things when I am inputing text).
    Thanks.

    Thanks to everyone who replied.
    The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
    (more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l#play%28%29)
    1. Progressive download
    2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works)
    Updated Matrix is :
    FMS 4.5 H.264 Streaming test matrix
    RTMP
    HDS
    HLS
    HTTP Progressive Download
    AIR for Android
    Yes
    Yes
    No
    Yes
    AIR on Windows (Desktop)
    Yes
    Yes
    No
    Yes
    AIR on IOS
    No
    No
    Yes
    Yes
    Safari Browser on IOS
    No
    No
    Yes
    No

  • Loading SWF's in AIR for iOS

    Hi,
    I am working on a project in AIR for iOS.  It's great that we as flash developers are now able to compile our actionscript code for iOS.
    The project i'm working on is divided in different SWF-files.  There is one master SWF file that loads the others when needed.
    Now i can't get loading of a swf file actually working.  The only thing i see is the background of the child being displayed, but then the program freezes and no actionscript code of the child gets exectuted.
    The children swf's are loaded with a simple Loader:
    var loader:Loader = new Loader();
    childLayer.addChild(loader);
    var url:URLRequest = new URLRequest("child.swf");
    loader.load(url);
    When i publish the master swf file i include the children swf files in the package.
    Is it actually possible to use multiple swf's in your iOS projects?
    And what are the limitations for this?
    Thanks.
    greeting,
    Bert

    You can control your external swf from your main.swf in the following method:
    loadswf(clips[0]);
    function loadswf(tmp:String):void{
        passedString=tmp;
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(animPath+tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        switch(passedString){
            case clips[0]:
                if (num==1) mcExt.play();
                if (num==9) {
                   mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                    function skipfn(e:MouseEvent):void{
                        mcExt.stop();
                       mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                        gotoAndStop("help");
                if (num==mcExt.totalFrames){
                   mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
                break;

  • Does Adobe AIR for iOS support APNs?

    Does Adobe AIR for iOS support the Apple Push Notification Service (APNs)?
    for more information on APNs see:
    http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/Remote NotificationsPG/ApplePushService/ApplePushService.html

    It is exactly the same.
    Do I need to add the mobileprovision in any step of the resigning process?
    Inside the unpacjed ipa, i've fund a Info.plist.
    This seems to be the plist file generated from adt.
    Do I need to integrate my entitlement with the original one?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <dict>
            <key>CFBundleAllowMixedLocalizations</key>
            <true/>
            <key>CFBundleVersion</key>
            <string>0.0.0</string>
            <key>CFBundleShortVersionString</key>
            <string>0.0.0</string>
            <key>CFBundleIdentifier</key>
            <string>XXXXXXXX</string>
            <key>CFBundleInfoDictionaryVersion</key>
            <string>6.0</string>
            <key>CFBundleExecutable</key>
            <string>iBatteryExample</string>
            <key>CFBundleDisplayName</key>
            <string>iBatteryExample</string>
            <key>CFBundlePackageType</key>
            <string>APPL</string>
            <key>DTCompiler</key>
            <string>4.2</string>
            <key>DTPlatformBuild</key>
            <string>8C134</string>
            <key>DTPlatformName</key>
            <string>iphoneos</string>
            <key>DTPlatformVersion</key>
            <string>4.2 Seed 2</string>
            <key>DTSDKName</key>
            <string>iphoneos4.2</string>
            <key>DTXcode</key>
            <string>0325</string>
            <key>DTXcodeBuild</key>
            <string>10M2423</string>
            <key>LSRequiresIPhoneOS</key>
            <true/>
            <key>MinimumOSVersion</key>
            <string>4.0</string>
            <key>NSMainNibFile</key>
            <string>MainWindow</string>
            <key>NSMainNibFile~ipad</key>
            <string>MainWindow-iPad</string>
            <key>CFBundleResourceSpecification</key>
            <string>ResourceRules.plist</string>
            <key>UIStatusBarHidden</key>
            <false/>
            <key>renderMode</key>
            <string>auto</string>
            <key>CTRequestedDisplayResolution</key>
            <string>high</string>
            <key>DebugMode</key>
            <false/>
            <key>CTSoftKeyboardBehavior</key>
            <string>none</string>
            <key>CTNamespaceURI</key>
            <string>http://ns.adobe.com/air/application/3.0</string>
            <key>CTAutoOrients</key>
            <true/>
            <key>CTInitialWindowTitle</key>
            <string>iBatteryExample</string>
            <key>CTInitialWindowContent</key>
            <string>xxxxx.app/xxxxxxxx.swf</string>
            <key>CTMaxSWFMajorVersion</key>
            <string>13</string>
            <key>CFBundleSupportedPlatforms</key>
            <array>
                <string>iPhoneOS</string>
            </array>
            <key>UIDeviceFamily</key>
            <array>
                <string>1</string>
                <string>2</string>
            </array>
            <key>aps-environment</key>
            <string>development</string>
            <key>com.apple.developer.aps-environment</key>
            <string>development</string>
            <key>get-task-allow</key>
            <true/>
            <key>UIRequiredDeviceCapabilities</key>
            <array>
                <string>armv7</string>
                <string>opengles-2</string>
            </array>
            <key>UISupportedInterfaceOrientations</key>
            <array>
                <string>UIInterfaceOrientationPortrait</string>
                <string>UIInterfaceOrientationPortraitUpsideDown</string>
                <string>UIInterfaceOrientationLandscapeRight</string>
                <string>UIInterfaceOrientationLandscapeLeft</string>
            </array>
            <key>Extensions</key>
            <array>
                <string>myExtension</string>
            </array>
        </dict>
    </plist>
    as you can see it already contains the aps-environment value because I've added it in my appdescriptor file.
    Any idea?
    Thanks

  • Please clarify availability of H 264 encoding in AIR for iOS/Android

    Hello,
    I've written an app to send a live camera stream via RTMP in H 264/Nellymoser from mobile devices.  The app works fine on AIR when tested on my Win7 desktop, but when I publish to AIR 3.2 for Android or AIR for iOS, it seems that the H264VideoStreamSettings are simply ignored and the video ends up in Sorenson.  Is H264 supported for encoding/publishing on AIR for mobile devices?  If not, is this planned for the future?
    Thanks!

    Unfortunately, the release notes say H.264 encoding from AIR is for the desktop version only:
    http://helpx.adobe.com/x-productkb/multi/release-notes-flash-player-11.html
    H.264/AVC Software Encoding for Cameras (desktop) — Stream high-quality video from your computer's camera with higher compression efficiency and industry stanard support, enabling both immersive real-time communications such as video chat/conferencing and live video broadcasts.

  • Publishing AIR for iOS in Flash CS5.5 gives Java VM error

    Hi,
    I have been getting the following error when trying to publish AIR for iOS from Flash CS5.5. I'm using AIR 2.7 overlayed, Windows 7 x64.
    Any help would be greatly appreciated.
    Thanks!

    I tried overlaying the latest AIR as sinious suggested, but that only changed my error message by adding the line about ADT as in the original post.
    I was finally able to get the app to compile by calling adt from the command line.  Here is an example .bat file that worked for me:
    @echo=off
    @set java_cmd="C:\Program Files\Java\jre6\bin\java.exe"
    @set java_param=-Xmx128m -jar
    @set adt_cmd="C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\lib\adt.jar"
    @set target=ipa-test
    @set cert=iOS_dev.p12
    @set cert_pass=password
    @set provisioning=my_iOS_device.mobileprovision
    @set build_file=helloworld.ipa
    @set desc_files=helloworld-app.xml
    @set files=helloworld.swf AppIconsFolder
    %java_cmd% %java_param% %adt_cmd% -package -target %target% -storetype pkcs12 -keystore %cert% -storepass %cert_pass%  -provisioning-profile %provisioning% %build_file% %desc_files% %files%
    pause

Maybe you are looking for

  • New hard drive, can't get photos to load from "iTunes sync" back into aperture or iPhoto

    My hard drive crashed while in for service. I had over 10,000 photos in aperture and they were not able to recover any of them. When I connected my iPhone 5 to iTunes, I see at the bar on the bottom that shows storage that there are 10,000+ photos bu

  • Streaming a PDF Presentation form One iPad to 5 other iPads

    Can I stream a presentation I'm giving from my iPad to the other attendees (5 or 6) in a meeting? All attendees will be be in the same room.  Will they need to be on the same network, or can I achieve this using Bloetooth? The presentation is in PDF

  • Dreamweaver and flash combined?

    hey everyone, i'm new at both dreamweaver/flash and currently have a project combining the two together and i really cant work it out (i'm even using html instead of css haha) :/ Anyway, what i want to do is have a zipper (as in a zipper on ones clot

  • Generating lots of archive logs

    Hi Friends, We have an EBS 11i on AIX 5L ...which has just been setup and ready for UAT...but the AppsDBA/Functional Consultant who didi it are not around anymore to ask for questiones. I just noticed the there are archive logs generated everyday...l

  • How to deploy a file on all users C drive via group policy

    I'm trying to deploy a file on all users C drive via group policy but its not working. logon script is already kept in place but nothing is happening. If I run the same command from my pc it's working fine. Does any one have good script to copy & dep