cordova-plugin-opentok
cordova-plugin-opentok copied to clipboard
Getting only a black screen, no session connection
Hi,
I'm trying to launch the default example application, compiled with phonegap build (it is now possible to add any kind of plugin to a PGB project).
The app launch fine on my iPhone, but the only thing I can see is a black rectangle with a "play" icon in the middle of it, and it does nothing when i press it. I put some "console.log" along the code, and I realise that the session.connect callback is never called. So I guess I cannot connect...
I used the exact same code as the example source code.
Any idea ?
Make sure to use your own API key and secret, which you can find in your TokBox dashboard
Any update on this issue? I am facing the same issues, I even added console logging in every single call in the opentok.js file. This is my output:
D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: initSession - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: TBSession - 45209302 - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: addEventListener ...streamCreated - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: adding event handlers - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: adding EventstreamCreated - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: initPublisher - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 229 : domId exists but properties width or height is not specified D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: getPosition - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 231 : width: 360 and height: 568 for domId myPublisherDiv, and top: 0, left: 0 D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: creating publisher - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: getPosition - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 740 : auto D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 740 : 11 D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: replaceWithVideoStream - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: getPosition - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 714 : JS: Objects being updated in TBUpdateObjects D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 718 : JS: Object updated D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 720 : JS sessionId: TBPublisher D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: getPosition - D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 740 : auto D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 740 : 11 D/CordovaLog(30895): null: Line 54 : after session on! D/CordovaLog(30895): file:///android_asset/www/opentok.js: Line 750 : JS Lib: connect -
That's where it ends.
Apologies if this is mentioned in another issue, but also is there any plans to update this and will there be any issues with using latest cordova etc.?
From lots and lots of searching around, OpenTok is the ONLY way I can find to stream live video from a mobile device using cordova etc. and I feel like it would be used so much! I'm sure everyone would love to contribute (including me - with some help).
Thanks in advance!