Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13679] Android: embeded video in a webview does not load when anyDensity=false

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.0.2
Fix Version/sRelease 3.2.0
ComponentsAndroid
Labelsandroid, video, webview
ReporterMeenakshi Pathak
AssigneeUnknown
Created2013-04-26T09:39:01.000+0000
Updated2018-02-28T20:03:18.000+0000

Description

Embeded video in a webview does not load when anydensity=false. Made anydensity=false in Tiapp.xml and tested:
<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <supports-screens android:anyDensity="false"/>
    </manifest>
</android>
Video did not load in a webview. Here is the sample code which was used for the testing:

Titanium.UI.setBackgroundColor('#000');
  
  
var win1 = Titanium.UI.createWindow({  
    title:'Window',
    backgroundColor:'#fff',
    fullscreen: true,
    navBarHidden: true
});
  
var webview = Titanium.UI.createWebView({
    url: 'http://www.youtube.com/embed/ATJlxjC4-n0',
    touchEnabled: true,
    scalesPageToFit:true,
    pluginState : Titanium.UI.Android.WEBVIEW_PLUGINS_ON,
});
 
win1.add(webview);
win1.open();

Comments

  1. Shak Hossain 2014-02-11

    This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
  2. Paras Mishra 2014-03-11

    Issue is reproducible using the following environment. Tested on: Device: LG-P970, Android version: 4.0.4 Device : Google Nexus 4, Android Version: 4.1.1 SDK: 3.2.3.v20140310185916 CLI version : 3.2.1 OS : MAC OSX 10.9 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.2.201403061827 titanium-code-processor: 1.1.0 XCode : 5.1 Beta 5
  3. Ceyhun Kazel 2016-01-15

    Still not working with 5.1.2 SDK.

JSON Source