From 5273ed4be9a5d2c6247c7ebaf411c201a5d738dc Mon Sep 17 00:00:00 2001 From: Jose Pereira Date: Thu, 4 Feb 2016 15:28:38 -0800 Subject: [PATCH] Bugfix _iosrtcVideoHandled flag when removing node --- dist/cordova-plugin-iosrtc.js | 1 + js/videoElementsHandler.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/cordova-plugin-iosrtc.js b/dist/cordova-plugin-iosrtc.js index 64ea5bca..ba5531c5 100644 --- a/dist/cordova-plugin-iosrtc.js +++ b/dist/cordova-plugin-iosrtc.js @@ -2436,6 +2436,7 @@ var debug = require('debug')('iosrtc:videoElementsHandler'), // If this video element was previously handling a MediaStreamRenderer, release it. releaseMediaStreamRenderer(node); + delete node._iosrtcVideoHandled; } else { for (j = 0; j < node.childNodes.length; j++) { childNode = node.childNodes.item(j); diff --git a/js/videoElementsHandler.js b/js/videoElementsHandler.js index 060aea99..9b9a5c13 100644 --- a/js/videoElementsHandler.js +++ b/js/videoElementsHandler.js @@ -114,6 +114,7 @@ var debug = require('debug')('iosrtc:videoElementsHandler'), // If this video element was previously handling a MediaStreamRenderer, release it. releaseMediaStreamRenderer(node); + delete node._iosrtcVideoHandled; } else { for (j = 0; j < node.childNodes.length; j++) { childNode = node.childNodes.item(j);