songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

session.subscribe and OT.initPublisher don't take elements only element ids #125

Open aullman opened 10 years ago

aullman commented 10 years ago

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.

ertanden commented 9 years ago

+1