Highlighted

Playing a video in AIR on a mobile device

Engaged ,
Nov 11, 2014

Copy link to clipboard

Copied

Does anyone have any walkthrough they can share for how to play a video in an mobile AIR app? This would be for a video that's bundled with the air app.

Thanks!

TOPICS
Development

Views

482

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Playing a video in AIR on a mobile device

Engaged ,
Nov 11, 2014

Copy link to clipboard

Copied

Does anyone have any walkthrough they can share for how to play a video in an mobile AIR app? This would be for a video that's bundled with the air app.

Thanks!

TOPICS
Development

Views

483

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 11, 2014 0
Engaged ,
Nov 13, 2014

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2014 0
Engaged ,
Nov 13, 2014

Copy link to clipboard

Copied

Thank you for sharing that. But that's for the Flash Player. I hoping to find a tutorial that speaks specifically about mobile development. What codecs are supported, best practices, etc. I need something to share with students. Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2014 0
Adobe Community Professional ,
Nov 13, 2014

Copy link to clipboard

Copied

I haven't seen a walkthrough, but these are the basic details:

You can play FLV with MP3 audio in the way you always did, if you used netstream that is. The FLVPlayback component won't work for iOS, because it has external code that Apple wouldn't allow. The video would be playing back just using the CPU, but at least you could use any rendermode. The performance wouldn't be ideal if you're doing full screen video.

You can play video that uses H.264/AAC in a StageWebView. It would be hardware decoded, and you could go full screen and other native like things. But, there are issues, especially on Android, where the video may even be upside down on some devices, or maybe the audio won't stop playing after you close the video.

Then there is StageVideo. It works almost identically to the old netstream way of working, except that it plays H.264/AAC with hardware decoding. Unlike Stage3D you can use either GPU or Direct rendermode, and there are many other advantages to using GPU over Direct. If you are using Stage3D (even via Starling), you will have to use Direct rendermode.

Since a recent version of AIR 15 StageVideo has also supported automatic software decoding as a fallback.

So, recent StageVideo is a good option, and certainly works on iOS and Android.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2014 1
Community Beginner ,
Nov 13, 2014

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2014 1
Engaged ,
Nov 14, 2014

Copy link to clipboard

Copied

Stagevideo with H.264 video codec and AAC audio is used on mobiles.

More info here: http://www.adobe.com/devnet/devices/articles/mobile_video_encoding.html

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 14, 2014 1
DJ_Gecko LATEST
Engaged ,
Nov 22, 2014

Copy link to clipboard

Copied

Thank you all, you've been very helpful. This discussion has also been very helpful - Re: How to play a video in AIR on a mobile device

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 22, 2014 0