songz / cordova-plugin-opentok

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

It is now possible to specify no dom-id to '.subscribe(stream, domId, props, callback)', which triggers auto-creation of the DOM element. #202

Open IjzerenHein opened 9 years ago

IjzerenHein commented 9 years ago

The 2.6 API of OpenTok specifies this signature for subscribe: subscribe(stream, targetElement, properties, completionHandler)

In OpenTok.js, targetElement can be undefined, which causes the DOM element to be created for you. The plugin did not support auto-creation of the DOM element for that particular signature of subscribe. This pull-requests adds that support.