|
@@ -443,7 +443,7 @@ class SkyCallFragment: BaseCallFragment(), CallSession.CallSessionCallback {
|
|
|
//远端画面
|
|
|
val surfaceView = gEngineKit!!.currentSession.setupRemoteVideo(userId, false)
|
|
|
Log.e("dds", "didReceiveRemoteVideoTrack,surfaceView = $surfaceView")
|
|
|
- if (surfaceView != null) {
|
|
|
+ if (surfaceView != null && fullscreen_video_frame != null) {
|
|
|
remoteSurfaceView = surfaceView as SurfaceViewRenderer
|
|
|
fullscreen_video_frame.removeAllViews()
|
|
|
if (remoteSurfaceView!!.parent != null) {
|