Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10594] Android: HTML5 <video> tag is not working as expected inside a webview

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionHold
Resolution Date2013-03-05T21:08:37.000+0000
Affected Version/sRelease 2.1.1
Fix Version/s2013 Sprint 05 API, 2013 Sprint 05
ComponentsAndroid
LabelsSupportTeam, api
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2012-08-24T07:31:29.000+0000
Updated2013-03-27T22:56:13.000+0000

Description

Problem description

When opening a page with a

Comments

  1. Vishal Duggal 2013-03-05

    Need to set the pluginState property of the webview. This works on my S3 running 4.1.1 but not on my S2 running 2.3.6
       (function() {
       var window = Titanium.UI.createWindow();
       
       var webView = Titanium.UI.createWebView({
       	pluginState:Titanium.UI.Android.WEBVIEW_PLUGINS_ON_DEMAND
       });
       webView.url = 'http://camendesign.com/code/video_for_everybody/test.html';
       window.add(webView);
       window.open();
       })();
       
    You might also want to checkout this page http://developer.android.com/guide/appendix/media-formats.html
  2. Vishal Duggal 2013-03-05

    Limited by basic media player formats that android supports in its webview.

JSON Source