File tree Expand file tree Collapse file tree
Android/APIExample/app/src/main/java/io/agora/api/example/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ private void joinChannel(String channelId) {
556556
557557 ChannelMediaOptions option = new ChannelMediaOptions ();
558558 option .channelProfile = Constants .CHANNEL_PROFILE_LIVE_BROADCASTING ;
559- option .clientRoleType = Constants . CLIENT_ROLE_BROADCASTER ;
559+ option .clientRoleType = CLIENT_ROLE_AUDIENCE ;
560560 option .autoSubscribeAudio = true ;
561561 option .autoSubscribeVideo = true ;
562562 int res ;
Original file line number Diff line number Diff line change @@ -492,16 +492,16 @@ public void onTokenGen(String token) {
492492 } else {
493493 LocalAudioMixerConfiguration config = new LocalAudioMixerConfiguration ();
494494 config .syncWithLocalMic = false ;
495- config .mixedAudioStreams .clear ();
495+ config .audioInputStreams .clear ();
496496 LocalAudioMixerConfiguration .MixedAudioStream remoteStream = new LocalAudioMixerConfiguration .MixedAudioStream ();
497497 remoteStream .sourceType = AUDIO_SOURCE_REMOTE_CHANNEL ;
498498 remoteStream .channelId = channelId ;
499- config .mixedAudioStreams .add (remoteStream );
499+ config .audioInputStreams .add (remoteStream );
500500
501501 LocalAudioMixerConfiguration .MixedAudioStream remoteStream2 = new LocalAudioMixerConfiguration .MixedAudioStream ();
502502 remoteStream2 .sourceType = AUDIO_SOURCE_MICROPHONE ;
503503 remoteStream2 .channelId = channelId ;
504- config .mixedAudioStreams .add (remoteStream2 );
504+ config .audioInputStreams .add (remoteStream2 );
505505 engine .startLocalAudioMixer (config );
506506 }
507507 }
You can’t perform that action at this time.
0 commit comments