cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-1957) InAppBrowser - video/audio does not stop playing when browser is closed
Date Fri, 30 Nov 2012 23:27:58 GMT

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

Shazron Abdullah edited comment on CB-1957 at 11/30/12 11:26 PM:
-----------------------------------------------------------------

Test file 'video.html' attached. Add the file your www folder then call from your index.html:
{code}
window.open('video.html', '_blank')
{code} 
... then play the inline video, then press the "Done" button to close the InAppBrowser while
the video is playing.

Note that in *config.xml*, you will have to set the preference "AllowInlineMediaPlayback"
to "true".
                
      was (Author: shazron):
    Test file 'video.html' attached. Add the file your www folder then call from your index.html:
{code}
window.open('video.html', _blank)
{code} 
... then play the inline video, then press the "Done" button to close the InAppBrowser while
the video is playing.

Note that in *config.xml*, you will have to set the preference "AllowInlineMediaPlayback"
to "true".
                  
> InAppBrowser - video/audio does not stop playing when browser is closed
> -----------------------------------------------------------------------
>
>                 Key: CB-1957
>                 URL: https://issues.apache.org/jira/browse/CB-1957
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>         Attachments: video.html
>
>
> Repro:
> 1. Load a YouTube video (with audio track) in the InAppBrowser, play it
> 2. Close InAppBrowser
> Expected result:
> Audio stops playing
> Actual result:
> Audio continues playing
> The simple fix is to loadHTMLString:nil on the InAppBrowser UIWebView when the view disappears,
but the real reason is probably because the UIWebView instance has not been released.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message