Skip to content

Commit

Permalink
[SSDK-1833][Android SSDK]Should change the logic action of Audio/Vide…
Browse files Browse the repository at this point in the history
…o event in onMediaChanged callback
  • Loading branch information
DengQiming committed Mar 20, 2018
1 parent bd1dc96 commit 9c01740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in
@SuppressWarnings("unused")
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEventMainThread(OnMediaChangeEvent event) {
Ln.d("OnMediaChangeEvent: " + event.callEvent);
if (event.callEvent instanceof CallObserver.SendingSharingEvent) {
Ln.d("Activity SendingSharingEvent: " + ((CallObserver.SendingSharingEvent)event.callEvent).isSending());
if (!((CallObserver.SendingSharingEvent)event.callEvent).isSending()){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public void onSwitchCallAbility(Switch s) {
break;
case R.id.switchSendAudio:
agent.sendAudio(s.isChecked());
break;
case R.id.switchReceiveVideo:
agent.receiveVideo(s.isChecked());
break;
Expand Down

0 comments on commit 9c01740

Please sign in to comment.