更换直播间视频渲染层以修复部分机型和模拟器滑动视频时白屏问题

This commit is contained in:
2023-01-07 09:54:37 +08:00
parent 8c0a23d39a
commit 80993c7d2d
5 changed files with 33 additions and 25 deletions

View File

@@ -7,9 +7,12 @@
android:layout_height="match_parent">
<SurfaceView
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/video_view"
android:layout_width="match_parent"
app:surface_type="texture_view"
app:resize_mode="zoom"
app:use_controller="false"
android:layout_height="match_parent" />
<ImageView