0 Replies Latest reply on Feb 10, 2016 6:58 PM by chris.campbell

    2/10/2016 - Beta - AIR 21.0.0.138

    chris.campbell Adobe Employee

      Welcome to the latest Flash Runtime version 21 beta! We've been hard at work adding new features to Flash Player and AIR and we're looking forward to receiving feedback from our development and Flash Player community.


      This beta release includes new features as well as enhancements and bug fixes related to security, stability, performance, and device compatibility for Flash Player 21 and AIR 21.  For full details, please see our release notes.

       

      New Features:

      • New Android Video Stack - LIMITED BETA

      We're modernizing our video stack and moving AIR Android video to the MediaCodec APIs.  With this feature, we'll be able to access hardware level encode and decode functionality, have greater flexibility of source inputs and improved stability.  This is a large task and we know we've got additional work ahead of us.  We're adding this feature to this weeks beta to gather feedback from developers that are interested or currently using video in their AIR Android applications.  This is a limited timed feature and will only be present for this weeks beta.  We anticipate it coming back to the beta channel once AIR 21 has been officially released.

       

      • Media Auto Play for iOS & Android

      Starting AIR 21, we are introducing Media Auto Play support for AIR iOS & Android applications. Using this feature, ActionScript developers can enable media auto play inside. To enable this, autoplay should also be enabled in the HTML5 video tag. (More info on HTML5 StageWebView video tag : http://www.w3schools.com/tags/tag_video.asp).

       

      Please use swf-version 32 or greater and namespace 21.0 or greater to access this feature.


      var webView:StageWebView = new StageWebView();

      webView.stage = stage;

      webView.viewPort = new Rectangle( 0, 0, 400, 300 );

      webView.mediaPlaybackRequiresUserAction = false;// To enable autoplay in given web view

      webView.addEventListener(Event.COMPLETE, <handleComplete>);

      webView.addEventListener(ErrorEvent.ERROR, <handleError>);

      webView.loadURL("http://any/webpage/with/autoplay/enabled/video.html”)

       

      • Android StageWebView debugging

      Starting in AIR 21, StageWebView Debugging will allow developers to debug web content (HTML / CSS / JavaScript) used in AIR Android applications. An ActionScript developer needs to add the webContentsDebuggingEnabled option to true in the application descriptor to allow StageWebView debugging in their AIR application. From there, simply connect your Android device to your machine via USB cable and navigate to chrome://inspect to debug embedded web content in your AIR application. Please use namespace 21.0 or greater to access this feature.

       

      <android>

        <!-- Indicates if webContents(HTML/CSS/JavaScript) can be inspected in browser. It is Optional, Default value is 'false' -->

        <webContentsDebuggingEnabled>true</webContentsDebuggingEnabled>

      </android>

       

      • GPU Memory Information In Context3D

      When a Context3D object is created, developers allocate memory for various Stage3D structures which includes index buffers, vertex buffers, textures, and programs. Prior to Flash and AIR 21, the only way to verify the memory allocated by the current Context3D is through values displayed by Scout. With the release of Flash Player and AIR 21, a new property of context3D class called "totalGPUMemory" has been introduced which provides the sum of gpu memory used by the index buffers, vertex buffers, textures, and programs created through Context3D.

       

      The total value can be obtained by property "Context3D.totalGPUMemory;".

       

      The value of this property is in bytes and its default value is 0.  The information is only provided in direct mode on mobile and in direct and gpu mode on desktop ( On desktop computers, using <renderMode>gpu</renderMode> will fallback to <renderMode>direct</renderMode>).  This property can be used when the SWF version is 32 or more .



      Fixed Issues:

      • [iOS] Packaging error appears in Flex app having TextField for non-interpretor (e.g. Ipa-app-store) mode on Macintosh (4111322)

      "Error #1053: Illegal override of softKeyboardType in spark.components.supportClasses.StyleableStageText"

      • [iOS & Android] Icon files get duplicated when packaging iOS, Android versions (4100164)
      • Multiple security and stability fixes



      Known Issues:

      • [iOS] Fails to link ImageIO.framework when targeting iOS (4113460)

       

       

      About the Beta Channel

      If you would like real-time notification for announcements related to the AIR Beta Channel please follow the Flash Runtime Announcements forums by choosing "Follow this forum" from the right-hand menu on the Forums page.

       

      You can find instructions for getting started with this release here: AIR Labs Page