Skip to content

Commit

Permalink
Merge pull request #127 from oNaiPs/bugfix_iosrtc_flag_on_node_removal
Browse files Browse the repository at this point in the history
Bugfix _iosrtcVideoHandled flag when removing node
  • Loading branch information
ibc committed Feb 4, 2016
2 parents d25fe27 + 5273ed4 commit 937249b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/cordova-plugin-iosrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions js/videoElementsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 937249b

Please sign in to comment.