cordova-plugin-opentok
cordova-plugin-opentok copied to clipboard
Some methods are not working on Android
been doing some testing and finding that some methods are not working on Android
- session.unsubscribe(stream)
- session.unpublish
- subscriber.subscribeToAudio
- subscriber.subscribeToVideo
just want to confirm that these are not working or if there are bugs
These functions should work as we already use them in our project. Issue can be closed to my opinion
hm... I couldn't get them working at all in Android though.... and looking at the OpenTokAndroidPlugin.java file, those methods seem to be completely empty
(line 448) }else if( action.equals( "unsubscribe" )){ }else if( action.equals( "subscribe" )){
We're having issues with this as well - is there something similar to the onStreamDropped code that can be put in here to make it functional again? [From onStreamDropped] @Override public void onStreamDropped(Session arg0, Stream arg1) { Log.i(TAG, "session dropped stream"); streamCollection.remove( arg1.getStreamId() ); RunnableSubscriber subscriber = subscriberCollection.get( arg1.getStreamId() ); if(subscriber != null){ subscriber.removeStreamView(); subscriberCollection.remove( arg1.getStreamId() ); }
triggerStreamDestroyed( arg1, "sessionEvents");
}