@@ -197,8 +197,8 @@ public void onClick(View v) {
197197 backGroundVideo .removeAllViews ();
198198 }
199199 // Create render view by RtcEngine
200- SurfaceView localView = RtcEngine . CreateRendererView (getContext ());
201- SurfaceView remoteView = RtcEngine . CreateRendererView (getContext ());
200+ SurfaceView localView = new SurfaceView (getContext ());
201+ SurfaceView remoteView = new SurfaceView (getContext ());
202202 if (isLocalVideoForeground ){
203203 // Add to the local container
204204 foreGroundVideo .addView (localView , new FrameLayout .LayoutParams (ViewGroup .LayoutParams .MATCH_PARENT , ViewGroup .LayoutParams .MATCH_PARENT ));
@@ -237,7 +237,7 @@ private void joinChannel(String channelId) {
237237 }
238238
239239 // Create render view by RtcEngine
240- SurfaceView surfaceView = RtcEngine . CreateRendererView (context );
240+ SurfaceView surfaceView = new SurfaceView (context );
241241 if (foreGroundVideo .getChildCount () > 0 ) {
242242 foreGroundVideo .removeAllViews ();
243243 }
@@ -406,7 +406,7 @@ public void onUserJoined(int uid, int elapsed) {
406406 backGroundVideo .removeAllViews ();
407407 }
408408 // Create render view by RtcEngine
409- surfaceView = RtcEngine . CreateRendererView (context );
409+ surfaceView = new SurfaceView (context );
410410 surfaceView .setZOrderMediaOverlay (true );
411411 // Add to the remote container
412412 backGroundVideo .addView (surfaceView , new FrameLayout .LayoutParams (ViewGroup .LayoutParams .MATCH_PARENT , ViewGroup .LayoutParams .MATCH_PARENT ));
0 commit comments