From 5a12fe59b6cdf49edbd61f15ab94da133a08bdba Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 14 Mar 2016 12:43:58 +0100 Subject: [PATCH] MOBILE-1452 video: Add data-tap-disabled so controls work in Android --- www/core/directives/formattext.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/core/directives/formattext.js b/www/core/directives/formattext.js index df24204c3ad..5cb3263811e 100644 --- a/www/core/directives/formattext.js +++ b/www/core/directives/formattext.js @@ -241,6 +241,8 @@ angular.module('mm.core') }); angular.forEach(dom.find('video'), function(el) { treatMedia(el, component, componentId, siteId); + // Set data-tap-disabled="true" to make controls work in Android (see MOBILE-1452). + el.setAttribute('data-tap-disabled', true); }); angular.forEach(dom.find('iframe'), addMediaAdaptClass);