Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eface2face/cordova-plugin-iosrtc
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Feb 16, 2016
2 parents f5e27f7 + 937249b commit 1cd1fc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion src/iosrtcPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class iosrtcPlugin : CDVPlugin {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener()")

let id = command.argumentAtIndex(0) as! String
let pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]
weak var pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]

if pluginMediaStreamTrack == nil {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener() | ERROR: pluginMediaStreamTrack with id=\(id) does not exist")
Expand Down

0 comments on commit 1cd1fc6

Please sign in to comment.