Detecting when the iOS native player is closed using StageWebView

I'm currently building an app that's using StageWebView to launch a live stream. I'm wondering if there's a way to detect if the user clicks done so I can dispose of the WebView.
I don't think it's too much of a big deal since it's currently 0,0 in Dim but resource wise I'm wondering if it's the best thing to have running awaiting a video link.

So it doesn't look like this is really possible. Short term we found that the LocationChange event fires after the Done button hit so we'll be using that as a short term solution before we build out an ANE.
For anyone else reading this and happens to run into the issue of the Video relaunching if you close the native player while loading. We found listening for LocationChange and calling .stop() helps prevent this from happening.

Similar Messages

  • Detecting When a Non-Blocking Socket Is Closed by the Remote Host

    Hi,
    Using NIO non blocked sockets how do I detect when a Non-Blocking Socket Is Closed by the Remote Host?
    What I have read is:
    The only way to detect that the remote host has closed the connection is to attempt to read or write from the connection. If the remote host properly closed the connection, read() will return -1. If the connection was not terminated normally, read() and write() will throw an exception.
    I have written a server test program using NIO and an applet connecting to the server program via sockets.
    When I after a successful connection shuts down the browser following happens: The code below comes in an endless loop though mySelector.select returns 0 every time. (The selector is registered for OP_READ). size = 1.
    while (true) {
    int n = mySelector.select();
    int size = mySelector.keys().size();
    if (n == 0) continue;
    Is this an expected result?
    How do I get to know what client has lost connection?
    My environment:
    W2000
    java 1.4.1 build 1.4.1_01-b01
    Browser used: IE 5.0
    Many thanks for your help on this matter!
    Regards Magnus Wistr�m

    What you're doing looks OK to me.
    I wonder whether your thread is being interrupted by Thread.intterupt() somewhere. Try putting a Thread.interrupted() before the select call.
    Sylvia.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • When the iOS 7 update will be available?

    yo! when will when the iOS 7 update will be officially available for all Apple device?

    iOS 7 will be released this Fall, (September - December)
    These are the officially supported iOS 7 devices:
    - iPhone 4
    - iPhone 4S
    - iPhone 5
    - iPad 2
    - iPad 3
    - iPad 4
    - iPad Mini
    - iPod touch 5th gen

  • Need to detect when the cursor is outside of the stage

    I need to detect when the cursor is outside of the stage. I
    have tried hitTest() but this doesn't seem to work. Someone must
    have a good solution to this one.

    What about putting either a thin invisible border just inside
    of the frame,
    or it might take 4 separate lines around the border and
    detect if they
    rollover that. Or check if the mouse x is less than 0,
    greater than the
    width, or the same for the top and bottom?
    I might have to code something like this myself in the next
    few days which
    is why it caught my attention.
    Timm
    "nudnic" <[email protected]> wrote in
    message
    news:f2g15n$j2$[email protected]..
    > Yes, I want to detect when the cursor leaves the stage
    area. Someone must
    > have found a good solution to this it has too many
    useful applications.

  • When the ios 7 release date, when the ios 7 release date

    when the ios 7 release date?? 

    No one will know until the day before at an Apple press conference.
    Know your Apple history, the 3rd quarter every year is the big release for a bunch of new products/upgrades.

  • Detecting when the movieClip finished playing

    Hi...
    Does anyone know how to detect when the movieclip is finish playing?
    i want to play an animation that is converted into a movieclip and indicate success of that level and then after the movieclip is finished playing then i want to run a function which will bring user to the next level.
    any suggestion?
    THanksss

    stage.addChild(play_mc);
    play_mc.gotoAndPlay("startPlay");
    play_mc.addEventListener( Event.ENTER_FRAME, onfrm);
    function onfrm( evnt: Event ): void
                    if (play_mc.currenFrame == play_mc.totalFrames )
                        play_mc.removeEventListener( Event.ENTER_FRAME, onfrm);
                        alpCount++;
                        splitWord(alpCount);
                        underlines();

  • How to not get notifications when the iOS app is closed

    I don't know if this is for everyone or just me. When I double click the home button and close skype I still get's messages. This is so annoying, I'm in a big group chat so I almost always get's messages. And turning on bussy doesn't work either or turning on sleep mode (sometimes sleep mode works). The only thing that has been working is turning on offline. I think this is really bad, just turning off the app should work. So does this this tace celuar network even when the app is closed? That truly SUCKS! I love the app othewise. Please fix this. I've a iPhone 5s

    Hi Krrrishna,
    >>How do I show all the toast messages received when the application was closed and when user clicks any on one of the toast message ? If that is not possible what is the workaround I can use so that I wont miss any of those messages ?
    In my experience, there is no direct way to handle multiple messages in the same time.
    If I'm not misunderstanding, I think you want to make a Message app, as a workaround, I think you can pull message data from your Mobile Service can display them in your Messages page, this is more like build-in message app.
    About using offline data sync in Mobile Services, see
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-phone-get-started-offline-data/
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Сertificate exception when building iOS native extension

    I have certificates for developer and distribution . I signed AIR apps using those certificates, and all work (I publiched 5 games to AppStore, all OK).
    But when I try to compile an iOS native extension, I get:
    Unable to build a valid certificate chain for the signer extension.
    Can someone help me, please? All my attempts failed to fix it.

    How did you compile your ane file? I met same issue before.
    adt -package -target ane myextension.ane extension.xml -swc mySwc.swc -platform iPhone-ARM library.swf libmylib.a -platformoptions myplatformoptions.xml
    lnside myplatformoptions.xml, I linked all the framework and shared libraries, as following
    <platform xmlns="http://ns.adobe.com/air/extension/3.1">
         <sdkVersion>5.1</sdkVersion>
         <linkerOptions>
              <!-- to use the CoreMotion framework -->    
              <option>-framework CoreMotion<option>
              <!-- to link with the libiconv.dylib -->
              <option>-liconv</option>
         </linkerOptions>
    </platform>
    Please let me know, if it does work.

  • Has anyone heard when the iOS 6 user manual will be posted?

    I thought I would get a jump on reading the manual for iOS 6 for iPhones before I updated my 4S to 6.0 (I'm waiting for the battery life thing to settle down before I update) and noticed that Apple still has the 5.1 manual on the web site.
    Hopefully they will post it soon.  I would think with over 2 million new phones about to be shipped and who knows how many more will go out the door when they start store sales that they would have posted the new manual already.

    I get the iOS 6 manual when I click the link.
    This is the file that is downloaded: http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    Maybe your browser has cached the old version?

  • Flash CS6 - Play MP3 In iOS Native Player?

    Hello,
    In my Flash CS6-based iPhone app, I'm trying to play an MP3 using the iPhone's native player, showing all the controls.  But, I cannot get it to play right in the iPhone's native player.
    Problem 1: I'm playing the MP3 directly in a WebStageView window (see graphic), but there's no Play/Pause button.
    Problem 2: I'm playing an HTML5 file (which launches the MP3) in a WebStageView window (see graphic), but the placement is wierd, and there's no audio scrubber.  Here's my HTML5 code:
    <!DOCTYPE html>
    <html>
    <body topmargin="0" leftmargin="0">
    <audio controls="controls"> 
      <source src="31_roundtable.mp3" /> 
    </audio>
    </body>
    </html>
    Does anyone have any solutions on how to play an MP3 using the iPhone's native player, showing all the controls?  Thank you.

    Just bumping this thead.  If anyone from Adobe can reply, I'd greatly appreciate it.  Thank you.

  • Detecting when the user is inserting a USB token

    Dear Forum,
    From a Java GUI application I'm trying to detect when a USB token (CrypToken from Marx) is inserted.
    When I run the program below with the USB token inserted it works fine. If I start the program and then inserts the USB token I keep getting a ProviderException.
    Any help is greatly appreciated.
    Kind regards,
    Morten Bruun
    The exception I get:
    java.security.ProviderException: Initialization failed
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:186)
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:76)
         at tryout.TestInsertToken.getProvider(TestInsertToken.java:38)
         at tryout.TestInsertToken.actionPerformed(TestInsertToken.java:47)
         at javax.swing.Timer.fireActionPerformed(Unknown Source)
         at javax.swing.Timer$DoPostEvent.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.security.ProviderException: slotListIndex is 0 but token only has 0slots
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:171)
         ... 12 moreMy test program looks like this:
    package tryout;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.security.Provider;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class TestInsertToken extends JFrame implements ActionListener {
         private Timer timer;
         private JLabel label;
         TestInsertToken() {
              this.setLayout(new FlowLayout());
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              label = new JLabel("Insert token");
              this.add(label);
              timer = new Timer(1000, this);
              timer.start();
              this.setSize(300, 200);
              this.setVisible(true);
         private Provider getProvider() {
              try {
                   return new sun.security.pkcs11.SunPKCS11("pkcs11.cfg");
              } catch (Exception e) {
                   System.out.println("Got exception: " + e.getMessage());
                   e.printStackTrace();
                   return null;
         public void actionPerformed(ActionEvent e) {
              Provider provider = getProvider();
              if(provider != null) {
                   this.label.setText("USB token detected: " + provider.getName());
                   this.timer.stop();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new TestInsertToken();
    }Edited by: Hr.Bruun on Nov 10, 2008 2:13 PM

    Thanks for replying, Andy!
    I know that if I point my gateway at 2013, I should be fine.  You mentioned that in this article: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f622ff81-0d97-44d3-9051-f22c381fe188/exchange-2010-and-um-on-exchange-2013?forum=exchangesvrunifiedmessaging
    "Once the SIP connection is pointed to 2013, it will handle both the 2013 and 2010 Mailboxes in the Dial Plan" which I found and which was helpful.
    But, in the TechNet walkthrough:
    http://technet.microsoft.com/en-us/library/dn169226(v=exchg.150).aspx 
    And the checklist too:
    http://technet.microsoft.com/en-us/library/dn169228(v=exchg.150).aspx
    It's having us move the UM enabled users before we repoint the IP gateway, which is one of the final steps. Since we're just in pilot mode right now, we'd prefer to not re-point that just yet.  Do you expect it shouldn't work?  Is TechNet wrong or
    am I misreading it or missing something else?

  • When the IOS 5 will be realise, will the Ipod 2G will be compatible ?

    I was asking if I got a Ipod touch 2G, will all the IOS 5 stuff will be compatible ?

    IOS 5 will only work on the 3G iPod Touch and later.  As to when it will be released, nobody knows and according to the Terms of Use of these forums, we are not allowed to speculate about such things.
    All we know is that it will be sometime this fall.
    B-rock

  • Where does the router fallback to load IOS when the IOS in flash memory is corrupted?

    If the ios image stored in flash is corrupted from where does the IOS is picked up?

    Hi,
    The following details the router boot process:
    1. The router is powered on.
    2. The bootstrap program (ROMmon) in ROM runs Power-On Self Test (POST)
    3. The bootstrap checks the Configuration Register value to specify where to load the IOS. By default (the default value of Configuration Register is 2102, in hexadecimal), the router first looks for “boot system” commands in startup-config file. If it finds these commands, it will run boot system commands in order they appear in startup-config to locate the IOS. If not, the IOS image is loaded from Flash . If the IOS is not found in Flash, the bootstrap can try to load the IOS from TFTP server or from ROM (mini-IOS).
    Last if it doesnt find the software anywere it would end up in rommon mode.
    HTH
    Regards
    Inayath

  • Batch processing and maplisteners -detecting when the maplisteners complete

    Hi
    I have a scenario.
    Get data from data source 1 and load to cache (say datasource cache) . on this cache I have set maplistener that does some transformation puts the data to another cache. I want to start another process when data transformation is complete.
    Since I have not implemented synchronous listener, I have no way to know when the transformation is complete (as we may not know when all threads for maplistener for the datasource cache completes.
    Is there is a way to find out all the tranasformation is complete. (Please note that N record/object in a datasource may form one transformed record, hence counting may not be good ide)
    It is possible to do an update a flag in each record in datasource cache and make another thread to check if all records are transformed start the process. But I would like hear from your experience if you have any other better solution, that I can leverage from coherence itself. (in otherways, If I sense some inactivity in tranformed cache, I can safely assume that the transformation process is over). Views welcome !!!!
    regards
    Ganesan

    Hi Ganesan,
    Why don't you fire off some events from the transformation threads when they finished?
    You should be able to know how many transformation operations were to be done. When you get that many events that they completed, you are done.
    Best regards,
    Robert

Maybe you are looking for

  • Help with ORA-01403: no data found please.

    First off I'd like to apologise for my lack of PL/SQL experience, what follows may seem naive, but I guess we all have to start somewhere. I'm trying to create a function which determines an employee's Annual Holiday Entitlement by comparing their le

  • FlexUnit not generating TestRunner.swf when compiled with Hudson / Ant

    I've been dabbling with FlexUnit (4.1 RC2) and CI under Hudson. To that effect, I chose to test the server configuration with the sample CI project that comes with the 4.1 RC2 distribution of FlexUnit, and compiling the project with Hudson (now Jenki

  • There is a xml parser written in pl/sql

    Hi everybody, We know xml parser for pl/sql is based on xml parser for java, that is, we need the Jsever running. However, Jserver needs 60-80 MB of memory and initially we don't need Jserver, except for xml parsing. Then: There is a xml parser writt

  • Organization Hierarchy Leavels

    Hi SAP Experts Is there a way to maintain Organization Hierarchy level against each org. unit? For example Organization Unit - Chairmanu2019s office --- Level 1 Organization Unit - Director's office --- Level 2 Organization Unit - Marketing Departmen

  • Stoping Sales Order types from specific plant

    Dear Friends, My client want to stop creation of specific sales order types from a specific plant. Means if that specific plant entered in sales order then system should not process that sales order further. Note : Material transference must not be a