Skip to content

Commit

Permalink
Merge pull request #12 from AgoraIO/jira/CSD-16974/arsenal
Browse files Browse the repository at this point in the history
fix bug of remote view display error
  • Loading branch information
TongJiangyong authored Jun 5, 2020
2 parents 4cd8df8 + d750f80 commit 57c790d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ public void run() {

private void onRemoteUserLeft() {
mRemoteUid = -1;
mRemoteView.setVisibility(View.INVISIBLE);
}

@Override
Expand All @@ -387,6 +388,7 @@ public void run() {
}

private void setupRemoteVideo(int uid) {
mRemoteView.setVisibility(View.VISIBLE);
mRemoteUid = uid;
mRemoteView.setBufferType(MediaIO.BufferType.BYTE_ARRAY);
mRemoteView.setPixelFormat(MediaIO.PixelFormat.I420);
Expand Down Expand Up @@ -438,7 +440,7 @@ protected void onChangedToBroadcaster(boolean broadcaster) {
mGLSurfaceViewLocal = new GLSurfaceView(this);

bindSurfaceViewEvent();

getWorker().setVideoSource(mVideoSource);
mVideoManager.allocate(this.mVideoCaptureConfigInfo);
mVideoManager.setRenderView(mGLSurfaceViewLocal);
mVideoManager.connectEffectHandler(mEffectHandler);
Expand Down

0 comments on commit 57c790d

Please sign in to comment.