Skip to content

Commit

Permalink
fix: use the better way to fix rendering problems
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Dec 18, 2020
1 parent 9ab28a7 commit 75f572d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions RtcSurfaceView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class RtcSurfaceView(
surface.setZOrderMediaOverlay(isMediaOverlay)
surface.setZOrderOnTop(onTop)
addView(surface)
surface.layout(0, 0, width, height)
canvas.view = surface
if (canvas.uid == 0) {
engine.setupLocalVideo(canvas)
Expand Down
1 change: 1 addition & 0 deletions RtcTextureView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class RtcTextureView(
removeAllViews()
texture = RtcEngine.CreateTextureView(context.applicationContext)
addView(texture)
texture.layout(0, 0, width, height)
canvas.view = texture
if (canvas.uid == 0) {
engine.setupLocalVideo(canvas)
Expand Down

0 comments on commit 75f572d

Please sign in to comment.