cordova-plugin-opentok icon indicating copy to clipboard operation
cordova-plugin-opentok copied to clipboard

Some methods are not working on Android

Open tysjiang opened this issue 9 years ago • 3 comments

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

tysjiang avatar Mar 31 '15 22:03 tysjiang

These functions should work as we already use them in our project. Issue can be closed to my opinion

mark-veenstra avatar Apr 20 '15 14:04 mark-veenstra

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" )){

tysjiang avatar Apr 20 '15 16:04 tysjiang

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");
      }

JCummings01 avatar Dec 11 '15 22:12 JCummings01