Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14934] Android: WebView: the pause button does not work when playing a youtube video on 4.0 devices

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2013-08-22T22:47:19.000+0000
Affected Version/sRelease 3.1.2, Release 3.2.0
Fix Version/s2013 Sprint 17 API
ComponentsAndroid
Labelsn/a
ReporterPing Wang
AssigneePing Wang
Created2013-08-21T23:56:59.000+0000
Updated2017-03-21T22:45:37.000+0000

Description

*Note:* This issue only happens on 4.0 devices. It does not happen on 2.3, 3.2, 4.1, 4.2, 4.3 devices. Steps to reproduce: 1. Run the test case. 2. Click the play button. Should see the video starts playing. 3. Click the pause button. Expected behavior: The video should be paused. Actual behavior: The video is still playing. Test case:
---------------------- app.js --------------------------
var win = Ti.UI.createWindow({
	backgroundColor : 'yellow'
});

var webview = Ti.UI.createWebView({
	url: "webpage.html"
});

win.add(webview);

win.open(); 

-------------------- webpage.html ------------------
<html>
<head>
    <meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale=1">
</head>
<body>
    <iframe width="300" height="169" src="http://www.youtube.com/embed/ATJlxjC4-n0" frameborder="0" allowfullscreen></iframe>
</body>
</html>
Please enable Settings->Developer options->Force GPU rendering, and add
<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="14"/>
            <application android:hardwareAccelerated="true"/>
        </manifest>
</android>
to the tiapp.xml.

Comments

  1. Lee Morris 2017-03-21

    Closing ticket as duplicate.

JSON Source