Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 2dea93a

Browse files
author
xianing
committed
fix rtmp transcoding
1 parent e1adae9 commit 2dea93a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ public void run() {
648648
Note: The video will stay at its last frame, to completely remove it you will need to
649649
remove the SurfaceView from its parent*/
650650
engine.setupRemoteVideo(new VideoCanvas(null, RENDER_MODE_HIDDEN, uid));
651+
if (fl_remote.getChildCount() > 0)
652+
{
653+
fl_remote.removeAllViews();
654+
}
651655
if(transcoding != null) {
652656
/**Removes a user from CDN live.
653657
* @return

0 commit comments

Comments
 (0)