H.264 vid in iOS app -AIR 2.6 only-

A little workaround to video performance issues on iOS...
http://forums.adobe.com/thread/827505?tstart=0

A little workaround to video performance issues on iOS...
http://forums.adobe.com/thread/827505?tstart=0

Similar Messages

  • Live Streaming H.264 Video on iOS using AIR

    We would like to build an AIR app that plays Streaming H.264 Live/VOD videos that would work through AIR on the iOS platform.
    I've seem some traffic on the forums that RTMP will work to iOS - but additionally heard that video applications that use RTMP streams will be rejected by the Apple App store.
    I have seen that progressive H.264 will work - but that's not streaming or live.
    HLS would work if we use the StageWebView object; however, that provides us little control/monitoring over the video inside of it; and it's not "really" integrated as a video player.
    For OSMF there seems to be a 3rd-Party plugin which will allow OSMF to read HLS streams - but (from what I've heard) is incomplete because it doesn't play adaptive nor is it completely updated for OSMF 1.6.1.
    I would love to be wrong here - but is there currently a way to play a Streamed H.264 Video to iOS that is non-RTMP?
    I've seem little information as to if F4M streamed files played via OSMF will work on iOS.
    Thanks for the info in advance.
    -Will

    I pasted a stripped down version of my test app below, that attempts to playback an m3u8 file. This works for me on an IPad2.
    Remember to test on the device itself otherwise wont work.
    Dependencies:
    1. Air 3.1
    2. OSMF 1.6.1
    3. Flex SDK 4.6.0
    renderMode="direct"
    HTH
    - Abey
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   backgroundAlpha="0"
                   backgroundColor="#000000"
                   addedToStage="onViewActivate(event)"
                   applicationDPI="160">
        <fx:Script>
            <![CDATA[
                private var nc:NetConnection;
                private var ns:NetStream;
                private var video:Video;
                private var currentVidUrl:String;
                protected function onViewActivate(event:Event):void
                    nc = new NetConnection();
                    nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false, 0, true);
                    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityErrorHandler, false, 0, true);
                    currentVidUrl = "http://fmsserver/hls-vod/sample.mp4.m3u8";
                    nc.connect(null);
                private function onNetStatus(evt:NetStatusEvent):void
                    switch (evt.info.code) {
                        case "NetConnection.Connect.Success":
                            ns = new NetStream(nc);
                            var client:Object = {};
                            client.onMetaData = onMetaData;
                            client.onCuePoint = onCuePoint;
                            client.onBWDone = onBWDone();
                            ns.client = client;
                            nc.client = client;
                            var v:Vector.<StageVideo> = stage.stageVideos;
                            if (v.length >= 1) {
                                var stageVideo:StageVideo = v[0];
                                stageVideo.viewPort = new Rectangle(0, 0, mediaContainer.width, mediaContainer.height);
                                stageVideo.attachNetStream(ns);
                            else {
                                video = new Video();
                                video.width = mediaContainer.width;
                                video.height = mediaContainer.height;
                                mediaContainer.addChildAt(video,0);
                                video.attachNetStream(ns);
                            if (currentVidUrl) {
                                ns.play(currentVidUrl);
                            break;
                        case "NetStream.Publish.BadName":
                            break;
                        default:
                            break;
                private function onSecurityErrorHandler(event:SecurityErrorEvent):void
                protected function onMetaData(item:Object):void
                protected function onCuePoint(item:Object):void
                protected function onBWDone():void
            ]]>
        </fx:Script>
        <mx:UIComponent id="mediaContainer"
                        height="100%"
                        width="100%"/>
    </s:Application>

  • AIR for iOS app crashes on launch - only on iPad1

    Hello,
    Been working on an iPad book app in FlashBuilder 4.6. Early on there were some performance issues with iPad1/3 until learning about GPU rendermode and setting the StageQuality to low. These helped immensely.
    However, recently the app starting crashing on startup - only on iPad1. For example page 1 of the app which had worked weeks ago would now crash. After more research, it seemed that the static references to all the page classes that were put in the ViewController were the issue. They seemed to be overwhelming the memory. When I put only a static reference to page1 in the VC it worked. And then in page 1 were static references to page 2 or 3. Or whatever pages it might link to. Now, after reworking the 70 other pages to only static reference the pages they need, it is crashing again.
    My question is this, if I have page 1 with a static reference to page 2 and 3. And each of those have references...all down the line to say page 70, are all those in essence getting loaded into memory at startup?
    The bigger question is how best to manage the memory of an AIR app that will have ~ 120+ "pages" or views in MVC parlance? Ideally, I only want the dynamically created view in memory but don't think it's working.
    After doing some research was thinking about loading/unloading swfs that have references to needed classes via ApplicationDomain.
    One interesting thing noticed is this. When launching the app in the debugger, it traces out terminated and the app quits. However, when double clicking the iPad home button, it shows the app still running. Not sure why that is?
    Pardon the lengthy description.
    Any and all help would be appreciated.
    Thanks, MTG

    @Fahad,
    It happens when the actual game is being played. I'm using AIR 3.2 SDK in flash pro cs6, I started this project before 3.3 was officially released, tested this on an iPad 1 with iOS 5.1.1.
    I used hi res stats to monitor memory usage and the app consumes less than 8MB of memory.
    Thanks

  • 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

  • Error while debugging AIR for IOS app

    I get the following error when attempting to debug my AIR-IOS app on an IPad 2.
    The weird thing is that the logfile mentioned does not exist.
    Any ideas?
    - Abey
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x764db9bc, pid=5400, tid=9024
    # JRE version: 6.0_29-b11
    # Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 )
    # Problematic frame:
    # C  [KERNELBASE.dll+0xb9bc]
    # An error report file with more information is saved as:
    # C:\Users\ABEY~1.LEX\AppData\Local\Temp\AOT1326388929076\hs_err_pid5400.log

    I have the same error.
    The wierd is that the log file doesn't exists.
    Anyway I try everything... to reinstal my Flash Builder, reinstall all versions of java. I even try to make Xmx and Xms bigger size.. but nothing... still got the error.
    If I create new project... then everything works fine... Export Release Build work very well,
    but if I try to Export Release Build for my large project... then this error comes up.
    I look at my code and no find any errors...
    Build for android works as well, the error comes up when I try to build for iOS.
    Please Adobe - give us help how to fix this.
    Thank you

  • Can no longer return to iOS app in AIR 4.0 Beta

    Is it me or is it no longer possible to return to an iOS app in AIR 4.0 beta? An app I just compiled restarts every time you launch it. No such problem in AIR 3.9.

    Just yesterday I saw a problem where going to the home screen and back would either crash the app or would leave it in a frozen state. It only happened if by that time I had been via a part of the app that played an animation that used stream audio.
    Might you be seeing the same kind of thing, where you can go in and out of your first screen, but get crashes or hangs when going from another screen?
    I didn’t log a bug yet because it’s a hard problem to narrow down, because the crashing happens when you return to the app, and so doing a debug session won’t help, the session closes when you go to the home screen.

  • Adobe Air + Box2D.swc = TypeError: Error #1009 // New way to handle .swc files in Flash for iOS Apps?

    Hi,
    I need your help please - I have to update one of my iOS Apps. In this App I use Box2d for a simple maze game (it's an app for kids). When I publish & test this game on my Mac it works fine. I can drag my Hero (fish) through this Maze and all collision detections, gravity etc. work perfect.
    When I test it on my iPad it doesn't work. The device debugger shows this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at global$init()
      at global$init()
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31]
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26]
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50]
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100]
      at misc::Entity/handleAddedToStage()
    Line 31: loader = new CLibInit();
    I guess "CLibInit" should come from the .swc file.
    The thing is:
    I didn't change anything in this maze game - it seems this has to do something with the new Flash and/or Adobe Air version. Box2D.swc file is included:
    It always worked like this - and it works when testing it on my Mac - but it is no longer working on my current system.
    So I started my Mac from an older system (10.9.5 on an external HD) and published the App from Flash CS6 and Adobe Air 13.0 - then it suddenly worked on my iPad as before. I was able to tap an the fish and drag it arround.
    The same project / app published from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 is not working. I always receive this Error Message - I can not drag the fish - nothing happens. And I have no idea why this happens and what else I could do. I searched the whole day for a solution but didn't find anything.
    So did anything change by the way Flash and/or Air handles .swc files? Is there an other way to include: import cmodule.Box2D.* / CLibInit ?
    Please - if anyone has a clue - please let me know!!
    Best regards
    Jan

    Update:
    There is also an Android Version of this App. I just published and tested a new version of it on my kindle fire & Samsung Galaxy Tab 2. On both Tablets the maze works perfect. I'm able to drag the fish around etc.
    Then I published this Android Version for iOS and tested it on my iPad. Again I'm getting the Error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference. 
      at global$init() 
      at global$init() 
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31] 
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26] 
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50] 
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100] 
      at misc::Entity/handleAddedToStage
    ...and the fish is stuck - I can't drag it - nothing happens. So this error only occurs when I publish the App for iOS - as an .ipa. Did anything change in the way Air handles .swc files?
    I'm totally confused
    If anybody has an idea what I could try - PLEASE LET ME KNOW!!

  • AIR iOS app fails uploading to Apple (iTunes Connect)

    I've been trying to upload my iOS app to iTunes Connect via Application Loader but it fails every single time. I'm getting the following error(s);
    'Unable to run the lipo command: ... Can't map input file ...' and 'Application failed codesign verification'
    I believe the second error is due to the first, but I'm not sure. I've been looking around the web for solutions and only found this thread on here, I've tried everything said there but nothing helps.
    Replacing my game with an empty FLA doesn't seem to work either.

    I'm on the latter side, usually it's a codesigning issue. How did you develop your certs and did you follow the order specifically in my list in that post? Often people use old certs but create a new app ID and expect the old certs to work.
    There's been other discussions about extra "files" that Flash Pro inserts into IPAs (.zips in disguise). Because Flash Pro publishes to a folder that's not built specifically for that build, people sometimes copy extra files into that path. Those files can "automatically" and accidentally be added to the IPA without the author desiring that. You should check what files are being packaged with your IPA to verify there's no extra junk.
    Are you using flash CS5.5 or CS6 and what version of AIR are you overlayed to?

  • How to install AIR 3.6 SDK in FB 4.7 without breaking iOS apps

    i downloaded the the Air 3.6 SDK with compiler from the labs website, unpacked it on mac, put the contents into the AIRSDK folder under the com.adobe.flash.compiler... folder as specified. 
    relaunch FB 4.7, and it shows that the AIR SDK is now 3.6.  update my name space to use 4.6, can compile and run no problem in AIR simulator, HOWEVER, the minute i try to export an IOS app, or run in IOS simulator or do anything with IOS, it craps out and i get the mess age"AIR For Apple IOS support in Flash Builder is not support", which means something is wrong, and of course it points me to instructions for FB 4.5 which are inapplicable....
    this is extremely frustrating for me, because i am hitting a nasty bug in AIR 3.5 and hoping that adobe has fixed the iOS app generator bug that i am encountering in AIR 3.5 where my final apps just show a blank screen and don't run at all... yet work fine in the AIR and IOS simulators...
    hoping someone else has wrestled with this. How come only a few people have had this problem, and nobody has reported a solution.
    would be nice if Adobe put some effort into reducing the number of files inside FB... it is over 25,000 files, and i gotta say, that is sloppy work to have so many files and therefore thousands of dependencies. Each dependency is a link that potentially can break. Far better to use collections of files that cannot be broken.
    And the update process should be no more than replacing a folder and restarting FB. I have spent 10 hours trying to get this to work, any help towards a solution would be greatly appreciated.

    Did you try the newly released SDK from official page, rather than labs? I would also suggest running FB with Java 1.6, if you have it on Java 1.7 - FB4.7 is known to yield some quirks with new java VMs.
    Flash Builder is developed on top of Eclipse platform, which is basically a pluggable architecture - nothing wrong with that. Number of files do not really affect the overall application performance. In general you should not touch that, unless you really know what you doing and can manage all the dependencies on your own. I agree, though, that's is quite unfortunate that Adobe decided to hide the AIR SDK deep inside plugins, instead dragging it out to a top-level folder, where it's visible and available for change. It was possible with Flex SDK configured externally, so why not here?

  • Reduce publishing time for Air iOS apps?

    Hi,
    Currently it's taking my machine up to  4 minutes to publish an Air iOS app.
    Are there any settings or hacks I could try to reduce the time?
    I'm using Flash CS 6 + AIR SDK 16 on a Windows 8.1 laptop.
    Stats:
    - Intel Pentium Prozessor (1,5 GHz, Intel HD Graphics, Microsoft Windows 8, 64-bit)
    - 4 GB DDR3-RAM
    - 500 GB Hybrid-SSHD-Festplatte with 8 GB SSD
    Thanks for any tips.

    Hi,
    I'm really interested in this feature as well. Have spent a bit of time attempting to get one running through a native extension but it doesn't appear to work. I believe something in the AIR build process is blocking the components required. I've tried several methods so far:
    packaging the appex with an ANE
    packaging the appex with the AIR container app
    using a class instead of a storyboard
    But nothing seems to be working. This is even before the app extension is doing anything. My guess is that the plist file specifying the app extension isn't correctly being included in the application but I have no idea how to update it to test.

  • Can the Macbook Air model MD760HN/B be used for developing iOS apps?

    Hi,
    I'm planning to learn iOS Apps Development and I am planning to buy the Macbook Air Model - MD760HN/B.
    My question is - Is this model fit enough to develop apps using XCode?
    The retailer says the OS is Mac OS X Mavericks, there is no version written.
    I am planning to develop using Swift Language so let me know if this is possible as well using the above stated Model Number.
    Yes, I have created an Apple Developer Account already as an iOS Developer.
    Looking forward for your valuable replies.
    I hope Mac is better than Windows (using since Windows 95) - (Hate Windows 8)
    Thanks in advance.
    Samiruddin

    This sounds to me like the MacBook Air mid-2013 model with a 13" display and core i5 processor built for sale in India.
    Yes, this should be fine for writing Swift code.
    The current Apple operating system is OS X Mavericks version 10.9.5.  If your computer comes with Mavericks installed, you can always update to the current version by opening the App Store and clicking "Updates" near the top right.

  • Open local PDF inside Air iOS app

    I am developing an AIR for iOS app for the iPad. My client would like the app to open a local PDF file within the app, rather than launching an external app (such as Adobe Reader). This is to give a seamless experience when using the app. I've seen that distriqt.com produce the 'PDF Reader' Native Extension based on www.vfr.org. VFR appears to have a series of interface controls that open along with the PDF, which I don't require. I emailed Distriqt a week ago to clarify, and have had no response.
    Does anyone know of any other solutions to open a PDF inside an AIR iOS app?

    I've managed to load a PDF successfully inside my AIR iOS app, using the code from http://thatsthaway.wordpress.com/201...1/#comment-102.
    However, I've just come across a weird feature / bug when viewing a PDF using stagewebview. I have a PDF that contains several internal hyperlinks, each navigating to a page within the same PDF document. If I select any of the hyperlinks, they do jump to the intended pages. However, if I reselect the same hyperlink again, it no longer works. If I select a different hyperlink, and then reselect a previous link, it will then work, but if I select the same hyperlink twice in a row, without selecting a different hyperlink in between, the link fails to work. The PDF hyperlinks all work ok outside of my app, on both Windows desktop and an iPad, just not inside of the AIR app.
    Any ideas?

  • Adobe air exe to ios app - the process?

    Hi,
    I am new to app development. I am wanting to know what is possible and my cheapest option in creating an app for IOS from windows.
    The app I am creating is a technical publication wanting to be displayed on anipad.
    I have an adobe Air version exe published from robohelp/ framemaker. Is there a way to turn my adobe air application into a IOS App?
    If not, what are my other options to get a tech pubs document as a IOS App? I would like to use ideally windows adobe products for the creation of it.
    Thanks

    Ye that Merapi definitely seems interesting but it's the Java chops part that I think I'll fall down lol
    I've also asked on a java forum if anyone with experience of using Flex in Conjunction with Java can create the function that I'm after but my topic has been ignored like the ugly girl at the prom.
    I've never heard of a socket server. Would they be required to be installed on each machine that the interface is installed on?
    I'll definitely look into it. Thanks a lot mate.

  • Is anybody else having their Adobe AIR iOS app crash within the first second of opening it?

    Is anybody else having their Adobe AIR iOS app crash within the first second of opening it?
    I am using iPhone 6, iOS 8.1.3, with a development certificate.
    With Adobe AIR SDK 16.0.0.283 and now with 17.0.0.93, after compiling the app (whether in release mode or debug mode), before the app getTimer() can ever reach 999 milliseconds the app will crash. No matter what code I have, it is just crashing before the runtime can ever reach the first second.
    Anybody else having this kind of behavior?

    Chris,
    Thanks for your prompt reply. I have found the way to reproduce. It is about interfaces, and when I try to call a method through an interface the app crashes. I think that it is related to having an interface with many parameters. I have logged the bug here:
    Bug#3935199 - iOS App crashes when calling an objects method through interface

  • Emoji in Adobe Air iOS app?

    Hello,
    We are using Adobe Flex 4.6 and Air 3.3 to develop iOS app. Does anyone know if it is possible to enable emoji in our app? Currently the emojis show up as squares.
    Thank you very much.

    omgallnamestaken,
    did you ever get anywhere on this?  Im trying to do the same thing on ios with air app running in the background.  thanks.

Maybe you are looking for