From c9402f3eef0a531b29b3d712e6d5274264ff2a9f Mon Sep 17 00:00:00 2001 From: Felipe Astroza Araya Date: Wed, 28 Jan 2015 17:18:34 -0300 Subject: [PATCH] Workaround for Android Video is paused after WhammyRecorder.record() call in Chrome for Android. This workaround force video playing if it's needed --- RecordRTC/RecordRTC.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RecordRTC/RecordRTC.js b/RecordRTC/RecordRTC.js index 16a0e6a8..75a0d0ca 100644 --- a/RecordRTC/RecordRTC.js +++ b/RecordRTC/RecordRTC.js @@ -1753,6 +1753,11 @@ function WhammyRecorder(mediaStream) { function drawFrames() { var duration = new Date().getTime() - lastTime; + + // Tweak for Android Chrome + if(video.paused) + video.play(); + if (!duration) { return drawFrames(); }