songz / cordova-plugin-opentok

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

Made 'element' and 'id' properties available on Subscriber class. #203

Open IjzerenHein opened 9 years ago

IjzerenHein commented 9 years ago

This pull-requests makes properties 'element' and 'id' available on the Subscriber class, as specified in the OpenTok.js API: https://tokbox.com/developer/sdks/js/reference/Subscriber.html

This is especially important when the DOM-element is auto-created by the opentok-plugin, and the UI code needs to grab that element and position it in the DOM tree.