fix [修复-修改视频框架]

This commit is contained in:
hch
2024-04-01 18:20:10 +08:00
parent 962a07d6d1
commit 97c692d41d
15 changed files with 316 additions and 169 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>

View File

@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.tencent.rtmp.ui.TXCloudVideoView
android:id="@+id/video_view"
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/placeholderView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true" />
android:layout_height="match_parent" />
<View
android:id="@+id/video_cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000" />
android:background="@color/transparent" />
<ImageView
android:id="@+id/btn_play"
@@ -24,5 +24,4 @@
android:adjustViewBounds="true"
android:src="@mipmap/icon_video_play"
android:visibility="invisible" />
</RelativeLayout>

View File

@@ -10,12 +10,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
<com.yunbao.video.views.MyImageView
android:id="@+id/cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:scaleType="centerCrop" />
android:layout_centerInParent="true" />
<RelativeLayout
android:layout_width="50dp"