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.
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.