Skip to main content
Known Participant
January 28, 2014
Question

How to add AIR SDK 3.7 to Flash Professional CC

  • January 28, 2014
  • 2 replies
  • 982 views

Due to an apparent bug with StageVideo not working with mp4 files with AIR SDK 3.8, 3.9 AND 4.0 I need to use AIR SDK 3.7.

I have just upgraded to Flash CC and it is not allowing me to add AIR SDK 3.7 via "Manage Adobe AIR SDK" panel.

When I try to add 3.7 it gives me the error saying I need to add a version greate than 3.8

There is by default 3.6 and 3.8 included in the list and it will not allow me to remove either of these.

Any ideas why these are locked down like this and how to resolve?

Thanks in advance

This topic has been closed for replies.

2 replies

flashdictionary
Inspiring
January 29, 2014

I noticed that you are trying to use StageVideo with Adobe AIR 3.7, which is not possible if you are using the Desktop runtime. StageVideo for desktop did not exist until Adobe AIR 3.8, which could explain your situation. Just to clarify, if you are using 3.7 for iOS or Android, then StageVideo is meant to work, but if you are using Flash Professional IDE then StageVideo doesnt yet exist, so it is likely that your code is reverting to the standard Video object, not StageVideo when your publish setting is set to 3.7.

The regular Video object is stable for many kinds of video, and it can be layered anywhere on the display list. But when using StageVideo there are many limitations, and it is layered underneath the entire display list. So perhaps when your publish setting is 3.8 or higher it is using the StageVideo that was introduced in AIR 3.8 but the layering is different than what you expected. Or the format of your video is not StageVideo compliant.

User Unknow
Legend
January 28, 2014

Are you sure about 3.7?  Because I dont see any issues with StageVideo

but in your cace you can go to flash cc app folder and find there air sdks. there you can overlay manually

P StevenAuthor
Known Participant
January 28, 2014

Thank you for the reply.

Have you successfully played mp4 using StageVideo using AIR 3.8, 3.9 or 4.0?

I can't even get the video to play when testing in Flash IDE (CS6 and CC) when the publish settings is set to AIR 3.8, 3.9 or 4.0 - which seems really weird. I have tried lots of different examples from the web and I get the same result. But works perfectly when I set the publishing version of AIR to 3.7. I would love to get to the bottom of this issue so I can use a later version of AIR SDK.

User Unknow
Legend
January 28, 2014

I don't have any issues with playing MP4. You must understand that mp4 should meet MP4 format requirements. If your video can't be played - this may be caused by issues with that mp4 video file but not Adobe Air.

For example this AS3 code succesfully play mp4 video that meet mp4 requirements by format (not Adobe whimsy). Also you may note that StageVideo available on Direct render mode. Auto or CPU will not support native mp4 playing.


package  {

    import flash.display.Sprite;

    import flash.net.NetConnection;

    import flash.net.NetStream;

    import flash.media.StageVideo;

    import flash.geom.Rectangle;

    public class sv extends Sprite {

        private var nc : NetConnection;

        private var ns : NetStream;

        private var client : Object = {};

        private var StageVideoContainer : StageVideo;

        public function sv() {

            client.onMetaData = onMetaDataCallback;

            nc = new NetConnection();

            nc.connect(null);

            ns = new NetStream(nc);

            ns.client = client;

            StageVideoContainer = stage.stageVideos[0];

            StageVideoContainer.attachNetStream( ns );

            StageVideoContainer.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);

            ns.play("162447510.mp4");

        }

        private function onMetaDataCallback(e:Object):void{

        }

    }

}

Here is Windows 7 Adobe Air project config from Flash CC. MP4 works prefect!

In this sample app I use Adobr Air 4.0.0.1390 from latest official release. You can chat to my skype therabbitwindfall and I will support you with my mp4 and Win7 project.

P.S. this mp4 works fine on iOS also.