Skip to main content
Inspiring
August 14, 2012
Answered

Detecting when the iOS native player is closed using StageWebView

  • August 14, 2012
  • 1 reply
  • 416 views

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.

This topic has been closed for replies.
Correct answer PeteCouture

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.

1 reply

PeteCoutureAuthorCorrect answer
Inspiring
August 15, 2012

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.