Skip to content

Commit 9e4dec4

Browse files
author
xia ning
authored
Merge pull request #216 from AgoraIO/dev/3.5.0.4
Dev/3.5.0.4
2 parents d6594e1 + 4672263 commit 9e4dec4

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchExternalVideo.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
public class SwitchExternalVideo extends BaseFragment implements View.OnClickListener {
7070
private static final String TAG = SwitchExternalVideo.class.getSimpleName();
7171

72-
private FrameLayout fl_remote;
7372
private RelativeLayout fl_local;
7473
private Button join, localVideo;
7574
private EditText et_channel;
@@ -102,7 +101,6 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
102101
join = view.findViewById(R.id.btn_join);
103102
localVideo = view.findViewById(R.id.localVideo);
104103
et_channel = view.findViewById(R.id.et_channel);
105-
fl_remote = view.findViewById(R.id.fl_remote);
106104
fl_local = view.findViewById(R.id.fl_local);
107105
join.setOnClickListener(this);
108106
localVideo.setOnClickListener(this);
@@ -194,7 +192,6 @@ public void onClick(View v) {
194192
joined = false;
195193
join.setText(getString(R.string.join));
196194
localVideo.setEnabled(false);
197-
fl_remote.removeAllViews();
198195
fl_local.removeAllViews();
199196
/**After joining a channel, the user must call the leaveChannel method to end the
200197
* call before joining another channel. This method returns 0 if the user leaves the

Android/APIExample/app/src/main/res/layout/fragment_switch_external_video.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
android:layout_height="match_parent"
1313
android:layout_above="@+id/ll_join" />
1414

15-
<FrameLayout
16-
android:id="@+id/fl_remote"
17-
android:layout_alignParentEnd="true"
18-
android:layout_width="180dp"
19-
android:layout_height="240dp"/>
20-
2115
<LinearLayout
2216
android:id="@+id/ll_join"
2317
android:layout_width="match_parent"

iOS/APIExample/Examples/Advanced/CustomAudioSource/CustomAudioSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class CustomAudioSourceMain: BaseViewController {
9898
// leave channel when exiting the view
9999
if isJoined {
100100
exAudio.stopWork()
101+
agoraKit.disableExternalAudioSource()
101102
agoraKit.leaveChannel { (stats) -> Void in
102103
LogUtils.log(message: "left channel, duration: \(stats.duration)", level: .info)
103104
}

iOS/APIExample/Examples/Advanced/CustomPcmAudioSource/CustomPcmAudioSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class CustomPcmAudioSourceMain: BaseViewController {
110110
// leave channel when exiting the view
111111
pcmSourcePush?.stop()
112112
if isJoined {
113+
agoraKit.disableExternalAudioSource()
113114
agoraKit.leaveChannel { (stats) -> Void in
114115
LogUtils.log(message: "left channel, duration: \(stats.duration)", level: .info)
115116
}

0 commit comments

Comments
 (0)