You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Oliver Moran (JIRA)" <ji...@apache.org> on 2014/01/17 01:21:22 UTC

[jira] [Comment Edited] (CB-5534) InAppBrowser - video/audio does not stop playing when browser is closed

    [ https://issues.apache.org/jira/browse/CB-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874201#comment-13874201 ] 

Oliver Moran edited comment on CB-5534 at 1/17/14 12:21 AM:
------------------------------------------------------------

Just YouTube videos from what we saw.

YouTube videos are played in iframes. It looks like the in-app browser doesn't clean up fully on closing and somehow (I suspect) the iframe and its content is left lingering. In any event, you can hear the YouTube video still playing after the in-app browser has been closed.

The attached code changes the exit procedure to make sure everything is cleaned-up when the in-app browser is exited (either by the Done button or the Android back button).


was (Author: oliver_moran):
Just YouTube videos from what we saw.

YouTube videos are played in iframes. It looks like a the in-app browser does clean up entirely on closing and somehow (I suspect) the iframe is left lingering. In any event, you can hear the YouTube video still playing after the browser has been closed.

The attached code changes the exit procedure to make sure everything is cleaned-up with the in-app browser is exited (either by Done or the back button).

> InAppBrowser - video/audio does not stop playing when browser is closed
> -----------------------------------------------------------------------
>
>                 Key: CB-5534
>                 URL: https://issues.apache.org/jira/browse/CB-5534
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin InAppBrowser
>    Affects Versions: 3.1.0
>         Environment: Android
>            Reporter: Oliver Moran
>            Assignee: Joe Bowser
>         Attachments: inappbrowser.zip
>
>
> This is a recurrence of an issue that was previously fixed: CB-1957
> Steps to reproduce
> 1. Load a YouTube video (with audio track) in the InAppBrowser
> 2. Play the video
> 3. Close InAppBrowser
> Expected result:
> - Audio stops playing
> Actual result:
> - Audio continues playing
> Fix:
> We encountered this bug as part of development and modified the InAppBrowser plugin to resolve it. The fix is part of our production code, is stable and has been through our QA. It does require extending the Android Dialog class, however.
> I've added an attachment with the modified Java files.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)