The Android SDK allows developers the ability to use either
TextureView should be used only if
SurfaceView does not meet your needs.
One example is where smooth animations or scrolling of the video surface is required prior to Android N version. In this case, ensure that
SDK_INT is less than 24 (Android N), otherwise use
SurfaceView is a default option and you don't need to make any extra configurations.
PlayerConfig.Builder() to add the
useTextureView(true) to the
// Create a new PlayerConfig using the Builder PlayerConfig playerConfig = new PlayerConfig.Builder() .useTextureView(true) .build();
Updated 3 months ago