cordova-plugin-opentok
cordova-plugin-opentok copied to clipboard
session.subscribe and OT.initPublisher don't take elements only element ids
In the web version of opentok.js the subscribe and initPublisher method targetElement property can be either the element ID or the element itself. So eg. both of these work:
session.subscribe(stream, document.querySelector('#subscriber'));
and
session.subscribe(stream, 'subscriber');
This doesn't work in opentok.js for Cordova.
+1