We used to use: https://github.com/songz/cordova-plugin-opentok/
But now we are updating to officially supported plugin: https://github.com/opentok/cordova-plugin-opentok
I just notice, songz's version used to have a completion handler for initPublisher method: Code here But surprisingly, it was removed (the third param) in this new version from Opentok labs: Code here
Just wondering, how can we handle it now? Tokbox documentation shows how it is still available in js SDK OT#initPublisher
TokBox Developer Evangelist here.
Song's original plugin had three parameters for initPublisher
, but it did not support a completion handler. Instead, the initPublisher
function accepted the following parameters:
apiKey
domId
properties
The plugin under the OpenTok Labs organization (built on top of Song's) removed the apiKey
parameter because it wasn't needed anymore. I've gone ahead and opened an issue on the repo for adding a completion handler to the initPublisher
method.
Hope this helps!