diff --git a/android/src/main/java/io/agora/agora_rtc_ng/AgoraPlatformViewFactory.java b/android/src/main/java/io/agora/agora_rtc_ng/AgoraPlatformViewFactory.java index 805b60e0a..0c26d0dff 100644 --- a/android/src/main/java/io/agora/agora_rtc_ng/AgoraPlatformViewFactory.java +++ b/android/src/main/java/io/agora/agora_rtc_ng/AgoraPlatformViewFactory.java @@ -2,6 +2,7 @@ import android.content.Context; import android.view.TextureView; +import android.view.SurfaceView; import android.view.View; import android.widget.FrameLayout; @@ -51,7 +52,7 @@ public static class PlatformViewProviderSurfaceView implements PlatformViewProvi @Override public View provide(Context context) { - return new TextureView(context); + return new SurfaceView(context); } }