songz / cordova-plugin-opentok

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

Subscriber Video Doesn't Show on Android (Works on iOS) #136

Open hpieris opened 9 years ago

hpieris commented 9 years ago

On Android the video from device's own camera is shown.

Functions as expected on iOS.

Below is from logcat:

D/CordovaLog(28731): file:///android_asset/www/cordova.js: Line 1058 : processMessage failed: Error: TypeError: Property 'subscribedToStream' of object # is not a function D/CordovaLog(28731): file:///android_asset/www/cordova.js: Line 1059 : processMessage failed: Stack: TypeError: Property 'subscribedToStream' of object # is not a function D/CordovaLog(28731): at TBSession.eventReceived (file:///android_asset/www/js/opentok.js:544:36) D/CordovaLog(28731): at file:///android_asset/www/js/opentok.js:383:59 D/CordovaLog(28731): at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:292:54) D/CordovaLog(28731): at processMessage (file:///android_asset/www/cordova.js:1053:21) D/CordovaLog(28731): at Function.androidExec.processMessages (file:///android_asset/www/cordova.js:1090:13) D/CordovaLog(28731): at pollOnce (file:///android_asset/www/cordova.js:955:17) D/CordovaLog(28731): at pollOnceFromOnlineEvent (file:///android_asset/www/cordova.js:945:5) D/CordovaLog(28731): file:///android_asset/www/cordova.js: Line 1060 : processMessage failed: Message: S11 OpenTokPlugin1492878482 {"data":{"streamId":"C282B975-E8F9-4AFE-AE9E-6D15E4B6E55D"},"eventType":"subscribedToStream"}

mark-veenstra commented 9 years ago

Seems to me you are trying to subscribe to a stream of the publisher