layout_base_video_view.xml
2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<com.google.android.exoplayer2.ui.AspectRatioFrameLayout
android:id="@id/cnlive_content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center">
<!-- Video surface will be inserted as the first child of the content frame. -->
<View
android:id="@id/cnlive_shutter"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000" />
<ImageView
android:id="@id/cnlive_artwork"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
<com.google.android.exoplayer2.ui.SubtitleView
android:id="@id/cnlive_subtitles"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.google.android.exoplayer2.ui.AspectRatioFrameLayout>
<FrameLayout
android:id="@id/cnlive_ad_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@id/cnlive_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<View
android:id="@id/cnlive_controller_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ProgressBar
android:id="@id/cnlive_buffering"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true" />
<LinearLayout
android:id="@id/cnlive_error_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:clickable="true"
android:gravity="center"
android:orientation="vertical">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="刷新" />
</LinearLayout>
</merge>