@capgo/capacitor-video-player 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapgoCapacitorVideoPlayer.podspec +17 -0
- package/Package.swift +28 -0
- package/README.md +431 -0
- package/android/build.gradle +72 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/capgo/videoplayer/FullscreenExoPlayerFragment.java +1406 -0
- package/android/src/main/java/com/capgo/videoplayer/Notifications/MyRunnable.java +21 -0
- package/android/src/main/java/com/capgo/videoplayer/Notifications/NotificationCenter.java +61 -0
- package/android/src/main/java/com/capgo/videoplayer/PickerVideo/AdapterVideoList.java +47 -0
- package/android/src/main/java/com/capgo/videoplayer/PickerVideo/ModelVideo.java +49 -0
- package/android/src/main/java/com/capgo/videoplayer/PickerVideo/PickerVideoFragment.java +116 -0
- package/android/src/main/java/com/capgo/videoplayer/PickerVideo/VideoRecyclerViewHolder.java +65 -0
- package/android/src/main/java/com/capgo/videoplayer/Utilities/FilesUtils.java +38 -0
- package/android/src/main/java/com/capgo/videoplayer/Utilities/FragmentUtils.java +32 -0
- package/android/src/main/java/com/capgo/videoplayer/VideoPlayer.java +71 -0
- package/android/src/main/java/com/capgo/videoplayer/VideoPlayerPlugin.java +1239 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/android/src/main/res/drawable/bg_round_rect_white_50.xml +9 -0
- package/android/src/main/res/drawable/bg_rounded_rectangle_white_corner_rounded.xml +10 -0
- package/android/src/main/res/drawable/exo_close_btn.xml +12 -0
- package/android/src/main/res/drawable/gradient_transparent_middle.xml +12 -0
- package/android/src/main/res/drawable/ic_arrow_left.xml +5 -0
- package/android/src/main/res/drawable/ic_baseline_lq.xml +7 -0
- package/android/src/main/res/drawable/ic_exo_icon_fastforward.xml +35 -0
- package/android/src/main/res/drawable/ic_exo_icon_pause.xml +26 -0
- package/android/src/main/res/drawable/ic_exo_icon_play.xml +36 -0
- package/android/src/main/res/drawable/ic_exo_icon_rewind.xml +35 -0
- package/android/src/main/res/drawable/ic_expand.xml +5 -0
- package/android/src/main/res/drawable/ic_fit.xml +5 -0
- package/android/src/main/res/drawable/ic_image_background.xml +12 -0
- package/android/src/main/res/drawable/ic_img_16_9_background.xml +10 -0
- package/android/src/main/res/drawable/ic_img_9_16_background.xml +10 -0
- package/android/src/main/res/drawable/ic_outline_lock.xml +5 -0
- package/android/src/main/res/drawable/ic_outline_lock_open.xml +5 -0
- package/android/src/main/res/drawable/ic_pip_white.xml +5 -0
- package/android/src/main/res/drawable/ic_views.xml +18 -0
- package/android/src/main/res/drawable/ic_zoom.xml +5 -0
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
- package/android/src/main/res/layout/exo_playback_control_view.xml +287 -0
- package/android/src/main/res/layout/exoplayer_layout_youtube.xml +361 -0
- package/android/src/main/res/layout/fragment_fs_exoplayer.xml +50 -0
- package/android/src/main/res/layout/fragment_picker_video.xml +21 -0
- package/android/src/main/res/layout/row_video.xml +76 -0
- package/android/src/main/res/values/colors.xml +14 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/styles.xml +3 -0
- package/dist/docs.json +686 -0
- package/dist/esm/definitions.d.ts +307 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web-utils/video-types.d.ts +4 -0
- package/dist/esm/web-utils/video-types.js +9 -0
- package/dist/esm/web-utils/video-types.js.map +1 -0
- package/dist/esm/web-utils/videoplayer.d.ts +30 -0
- package/dist/esm/web-utils/videoplayer.js +323 -0
- package/dist/esm/web-utils/videoplayer.js.map +1 -0
- package/dist/esm/web.d.ts +121 -0
- package/dist/esm/web.js +675 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +1019 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +1021 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/VideoPlayerPlugin/VideoPlayer.swift +8 -0
- package/ios/Sources/VideoPlayerPlugin/VideoPlayerPlugin.swift +23 -0
- package/ios/Tests/VideoPlayerPluginTests/VideoPlayerPluginTests.swift +15 -0
- package/package.json +85 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tool="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:background="#59000000"
|
|
8
|
+
android:visibility="visible"
|
|
9
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
10
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
11
|
+
app:layout_constraintTop_toTopOf="parent">
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
15
|
+
android:id="@+id/layout_header_view"
|
|
16
|
+
android:layout_width="0dp"
|
|
17
|
+
android:layout_height="wrap_content"
|
|
18
|
+
android:layout_marginTop="10dp"
|
|
19
|
+
android:layout_marginEnd="20dp"
|
|
20
|
+
android:orientation="horizontal"
|
|
21
|
+
app:layout_constraintEnd_toStartOf="@+id/right_buttons"
|
|
22
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
23
|
+
app:layout_constraintTop_toTopOf="parent">
|
|
24
|
+
|
|
25
|
+
<ImageButton
|
|
26
|
+
android:id="@+id/exo_close"
|
|
27
|
+
android:layout_width="48dp"
|
|
28
|
+
android:layout_height="48dp"
|
|
29
|
+
android:layout_gravity="center"
|
|
30
|
+
android:background="?actionBarItemBackground"
|
|
31
|
+
android:ellipsize="end"
|
|
32
|
+
android:scaleX="1.3"
|
|
33
|
+
android:scaleY="1.3"
|
|
34
|
+
android:src="@drawable/ic_arrow_left"
|
|
35
|
+
tool:ignore="MissingConstraints"
|
|
36
|
+
android:contentDescription="Back button"/>
|
|
37
|
+
|
|
38
|
+
<androidx.appcompat.widget.AppCompatTextView
|
|
39
|
+
android:id="@+id/header_tv"
|
|
40
|
+
android:layout_width="match_parent"
|
|
41
|
+
android:layout_height="wrap_content"
|
|
42
|
+
android:layout_gravity="center"
|
|
43
|
+
android:ellipsize="end"
|
|
44
|
+
android:maxLines="2"
|
|
45
|
+
android:paddingStart="50dp"
|
|
46
|
+
|
|
47
|
+
android:text="Main text title"
|
|
48
|
+
android:textColor="@color/white"
|
|
49
|
+
android:textSize="18sp"
|
|
50
|
+
app:layout_constraintBottom_toTopOf="@id/header_below"
|
|
51
|
+
app:layout_constraintStart_toEndOf="@id/exo_close"
|
|
52
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
53
|
+
|
|
54
|
+
app:layout_constraintWidth_max="wrap" />
|
|
55
|
+
|
|
56
|
+
<androidx.appcompat.widget.AppCompatTextView
|
|
57
|
+
android:id="@+id/header_below"
|
|
58
|
+
android:layout_width="match_parent"
|
|
59
|
+
android:layout_height="wrap_content"
|
|
60
|
+
android:layout_gravity="center"
|
|
61
|
+
android:ellipsize="end"
|
|
62
|
+
android:maxLines="2"
|
|
63
|
+
android:paddingStart="50dp"
|
|
64
|
+
android:text="Subtitle"
|
|
65
|
+
android:textColor="@color/white"
|
|
66
|
+
android:textSize="12sp"
|
|
67
|
+
app:layout_constraintTop_toBottomOf="@+id/header_tv"
|
|
68
|
+
app:layout_constraintStart_toEndOf="@id/exo_close"
|
|
69
|
+
app:layout_constraintWidth_max="wrap"
|
|
70
|
+
app:layout_constraintWidth_percent="0.9" />
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
74
|
+
|
|
75
|
+
<LinearLayout
|
|
76
|
+
android:id="@+id/right_buttons"
|
|
77
|
+
android:layout_width="wrap_content"
|
|
78
|
+
android:layout_height="wrap_content"
|
|
79
|
+
android:layout_marginTop="10dp"
|
|
80
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
81
|
+
app:layout_constraintEnd_toEndOf="@id/lock_layout"
|
|
82
|
+
app:layout_constraintStart_toEndOf="@id/layout_header_view">
|
|
83
|
+
|
|
84
|
+
<androidx.mediarouter.app.MediaRouteButton
|
|
85
|
+
android:id="@+id/media_route_button"
|
|
86
|
+
android:layout_width="48dp"
|
|
87
|
+
android:layout_height="48dp"
|
|
88
|
+
android:layout_weight="1"
|
|
89
|
+
android:mediaRouteTypes="user"
|
|
90
|
+
android:background="?actionBarItemBackground"
|
|
91
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
92
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
93
|
+
app:layout_constraintEnd_toStartOf="@id/exo_pip"
|
|
94
|
+
android:visibility="gone"/>
|
|
95
|
+
|
|
96
|
+
<ImageButton
|
|
97
|
+
android:id="@+id/exo_pip"
|
|
98
|
+
android:layout_width="48dp"
|
|
99
|
+
android:layout_height="48dp"
|
|
100
|
+
android:background="?actionBarItemBackground"
|
|
101
|
+
android:src="@drawable/ic_pip_white"
|
|
102
|
+
app:layout_constraintEnd_toStartOf="@id/exo_resize"
|
|
103
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
104
|
+
app:layout_constraintStart_toEndOf="@id/media_route_button"
|
|
105
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
106
|
+
android:visibility="gone"
|
|
107
|
+
android:contentDescription="Picture in picture button"/>
|
|
108
|
+
|
|
109
|
+
<ImageButton
|
|
110
|
+
android:id="@+id/exo_resize"
|
|
111
|
+
android:layout_width="48dp"
|
|
112
|
+
android:layout_height="48dp"
|
|
113
|
+
android:layout_gravity="center"
|
|
114
|
+
android:background="?actionBarItemBackground"
|
|
115
|
+
android:src="@drawable/ic_expand"
|
|
116
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
117
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
118
|
+
app:layout_constraintStart_toEndOf="@id/exo_pip"
|
|
119
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
120
|
+
android:visibility="gone"
|
|
121
|
+
android:contentDescription="Resize button"/>
|
|
122
|
+
|
|
123
|
+
</LinearLayout>
|
|
124
|
+
|
|
125
|
+
<LinearLayout
|
|
126
|
+
android:id="@+id/lock_layout"
|
|
127
|
+
android:layout_width="wrap_content"
|
|
128
|
+
android:layout_height="wrap_content"
|
|
129
|
+
android:layout_marginTop="10dp"
|
|
130
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
131
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
132
|
+
app:layout_constraintStart_toEndOf="@id/right_buttons">
|
|
133
|
+
|
|
134
|
+
<ImageButton
|
|
135
|
+
android:id="@+id/player_lock"
|
|
136
|
+
android:layout_width="48dp"
|
|
137
|
+
android:layout_height="48dp"
|
|
138
|
+
android:layout_gravity="center"
|
|
139
|
+
android:background="?actionBarItemBackground"
|
|
140
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
141
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
142
|
+
app:layout_constraintStart_toEndOf="parent"
|
|
143
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
144
|
+
android:src="@drawable/ic_outline_lock"
|
|
145
|
+
android:visibility="gone"
|
|
146
|
+
android:contentDescription="Lock button"/>
|
|
147
|
+
</LinearLayout>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
<androidx.constraintlayout.widget.Barrier
|
|
151
|
+
android:id="@+id/barrier_left"
|
|
152
|
+
android:layout_width="wrap_content"
|
|
153
|
+
android:layout_height="wrap_content"
|
|
154
|
+
app:barrierDirection="left"
|
|
155
|
+
app:constraint_referenced_ids="exo_pause,exo_play" />
|
|
156
|
+
|
|
157
|
+
<ImageButton
|
|
158
|
+
android:id="@+id/exo_rew"
|
|
159
|
+
style="@style/ExoMediaButton.Rewind"
|
|
160
|
+
android:layout_marginRight="40dp"
|
|
161
|
+
android:src="@drawable/ic_exo_icon_rewind"
|
|
162
|
+
android:visibility="visible"
|
|
163
|
+
app:layout_constraintBottom_toBottomOf="@id/exo_play"
|
|
164
|
+
app:layout_constraintRight_toLeftOf="@+id/barrier_left"
|
|
165
|
+
app:layout_constraintTop_toTopOf="@id/exo_play"
|
|
166
|
+
android:background="?actionBarItemBackground"/>
|
|
167
|
+
|
|
168
|
+
<ImageButton
|
|
169
|
+
android:id="@+id/exo_ffwd"
|
|
170
|
+
style="@style/ExoMediaButton.FastForward"
|
|
171
|
+
android:layout_marginLeft="40dp"
|
|
172
|
+
android:src="@drawable/ic_exo_icon_fastforward"
|
|
173
|
+
android:visibility="visible"
|
|
174
|
+
app:layout_constraintBottom_toBottomOf="@id/exo_play"
|
|
175
|
+
app:layout_constraintLeft_toRightOf="@+id/barrier_right"
|
|
176
|
+
app:layout_constraintTop_toTopOf="@id/exo_play"
|
|
177
|
+
android:background="?actionBarItemBackground"/>
|
|
178
|
+
|
|
179
|
+
<androidx.constraintlayout.widget.Barrier
|
|
180
|
+
android:id="@+id/barrier_right"
|
|
181
|
+
android:layout_width="wrap_content"
|
|
182
|
+
android:layout_height="wrap_content"
|
|
183
|
+
app:barrierDirection="right"
|
|
184
|
+
app:constraint_referenced_ids="exo_pause,exo_play" />
|
|
185
|
+
|
|
186
|
+
<ImageButton
|
|
187
|
+
android:id="@+id/exo_play"
|
|
188
|
+
style="@style/ExoMediaButton.Play"
|
|
189
|
+
android:layout_width="56dp"
|
|
190
|
+
android:layout_height="56dp"
|
|
191
|
+
android:src="@drawable/ic_exo_icon_play"
|
|
192
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
193
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
194
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
195
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
196
|
+
android:background="?actionBarItemBackground"/>
|
|
197
|
+
|
|
198
|
+
<ImageButton
|
|
199
|
+
android:id="@+id/exo_pause"
|
|
200
|
+
style="@style/ExoMediaButton.Pause"
|
|
201
|
+
android:layout_width="56dp"
|
|
202
|
+
android:layout_height="56dp"
|
|
203
|
+
android:src="@drawable/ic_exo_icon_pause"
|
|
204
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
205
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
206
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
207
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
208
|
+
android:background="?actionBarItemBackground"/>
|
|
209
|
+
|
|
210
|
+
<LinearLayout
|
|
211
|
+
android:id="@+id/cast_info"
|
|
212
|
+
android:layout_width="match_parent"
|
|
213
|
+
android:layout_height="wrap_content"
|
|
214
|
+
android:layout_marginStart="20dp"
|
|
215
|
+
android:layout_marginBottom="10dp"
|
|
216
|
+
android:layout_marginEnd="20dp"
|
|
217
|
+
android:orientation="horizontal"
|
|
218
|
+
app:layout_constraintBottom_toTopOf="@+id/videoTimeContainer"
|
|
219
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
220
|
+
app:layout_constraintStart_toStartOf="parent">
|
|
221
|
+
|
|
222
|
+
<androidx.appcompat.widget.AppCompatTextView
|
|
223
|
+
android:id="@+id/cast_message"
|
|
224
|
+
android:layout_width="wrap_content"
|
|
225
|
+
android:layout_height="wrap_content"
|
|
226
|
+
android:layout_gravity="center"
|
|
227
|
+
android:maxLines="2"
|
|
228
|
+
android:textColor="@color/white"
|
|
229
|
+
android:layout_marginEnd="10dp"
|
|
230
|
+
android:textSize="18sp"
|
|
231
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
232
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
233
|
+
app:layout_constraintWidth_max="wrap"
|
|
234
|
+
app:layout_constraintWidth_percent="0.9"
|
|
235
|
+
android:visibility="gone"
|
|
236
|
+
android:text="Casting Video" />
|
|
237
|
+
|
|
238
|
+
<LinearLayout
|
|
239
|
+
android:id="@+id/quality"
|
|
240
|
+
android:layout_width="wrap_content"
|
|
241
|
+
android:layout_height="wrap_content"
|
|
242
|
+
android:orientation="horizontal"
|
|
243
|
+
app:layout_constraintStart_toEndOf="parent"
|
|
244
|
+
app:layout_constraintTop_toBottomOf="@id/layout_header_view">
|
|
245
|
+
|
|
246
|
+
<ImageView
|
|
247
|
+
android:id="@+id/quality_icon"
|
|
248
|
+
android:layout_width="wrap_content"
|
|
249
|
+
android:layout_height="wrap_content"
|
|
250
|
+
android:layout_gravity="center"
|
|
251
|
+
android:src="@drawable/ic_baseline_lq"
|
|
252
|
+
android:visibility="gone"
|
|
253
|
+
app:layout_constraintTop_toBottomOf="@+id/header_below"
|
|
254
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
255
|
+
app:layout_constraintWidth_max="wrap"/>
|
|
256
|
+
|
|
257
|
+
<androidx.appcompat.widget.AppCompatTextView
|
|
258
|
+
android:id="@+id/resolution_label"
|
|
259
|
+
android:layout_width="wrap_content"
|
|
260
|
+
android:layout_height="wrap_content"
|
|
261
|
+
android:layout_gravity="center"
|
|
262
|
+
android:ellipsize="end"
|
|
263
|
+
android:maxLines="1"
|
|
264
|
+
android:text="1280x720p"
|
|
265
|
+
android:paddingStart="3dp"
|
|
266
|
+
android:textColor="@color/white"
|
|
267
|
+
android:textSize="12sp"
|
|
268
|
+
android:visibility="gone"
|
|
269
|
+
app:layout_constraintTop_toBottomOf="@+id/header_below"
|
|
270
|
+
app:layout_constraintStart_toEndOf="@id/quality_icon"
|
|
271
|
+
app:layout_constraintWidth_max="wrap"
|
|
272
|
+
app:layout_constraintWidth_percent="0.9" />
|
|
273
|
+
|
|
274
|
+
</LinearLayout>
|
|
275
|
+
|
|
276
|
+
</LinearLayout>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
<LinearLayout
|
|
280
|
+
android:id="@+id/videoTimeContainer"
|
|
281
|
+
android:layout_width="match_parent"
|
|
282
|
+
android:layout_height="wrap_content"
|
|
283
|
+
android:layout_marginStart="20dp"
|
|
284
|
+
android:layout_marginEnd="20dp"
|
|
285
|
+
android:layout_marginBottom="10dp"
|
|
286
|
+
android:orientation="horizontal"
|
|
287
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
288
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
289
|
+
app:layout_constraintStart_toStartOf="parent">
|
|
290
|
+
|
|
291
|
+
<TextView
|
|
292
|
+
android:id="@id/exo_position"
|
|
293
|
+
android:layout_width="wrap_content"
|
|
294
|
+
android:layout_height="wrap_content"
|
|
295
|
+
android:layout_gravity="center"
|
|
296
|
+
android:textColor="@color/white"
|
|
297
|
+
android:textSize="14sp"
|
|
298
|
+
app:layout_constraintBottom_toBottomOf="@id/exo_progress"
|
|
299
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
300
|
+
app:layout_constraintTop_toTopOf="@+id/exo_progress"
|
|
301
|
+
tool:text="00:00" />
|
|
302
|
+
|
|
303
|
+
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
304
|
+
android:id="@+id/exo_progress"
|
|
305
|
+
android:layout_width="0dp"
|
|
306
|
+
android:layout_height="wrap_content"
|
|
307
|
+
android:layout_gravity="center"
|
|
308
|
+
|
|
309
|
+
android:layout_weight="1"
|
|
310
|
+
app:buffered_color="@color/white_50"
|
|
311
|
+
app:played_color="#FFFFFF"
|
|
312
|
+
app:scrubber_color="#FFFFFF"
|
|
313
|
+
app:unplayed_color="@color/white_20" />
|
|
314
|
+
|
|
315
|
+
<TextView
|
|
316
|
+
android:id="@id/exo_duration"
|
|
317
|
+
android:layout_width="wrap_content"
|
|
318
|
+
android:layout_height="wrap_content"
|
|
319
|
+
android:layout_gravity="center_vertical"
|
|
320
|
+
android:gravity="right"
|
|
321
|
+
android:textColor="@color/white"
|
|
322
|
+
android:textSize="14sp"
|
|
323
|
+
app:layout_constraintBottom_toBottomOf="@id/exo_progress"
|
|
324
|
+
app:layout_constraintStart_toEndOf="@+id/exo_progress"
|
|
325
|
+
app:layout_constraintTop_toTopOf="@+id/exo_progress"
|
|
326
|
+
tool:text="00:00" />
|
|
327
|
+
|
|
328
|
+
</LinearLayout>
|
|
329
|
+
|
|
330
|
+
<androidx.constraintlayout.widget.Guideline
|
|
331
|
+
android:id="@+id/guideline"
|
|
332
|
+
android:layout_width="wrap_content"
|
|
333
|
+
android:layout_height="wrap_content"
|
|
334
|
+
android:orientation="horizontal"
|
|
335
|
+
app:layout_constraintGuide_begin="10dp" />
|
|
336
|
+
|
|
337
|
+
<androidx.constraintlayout.widget.Guideline
|
|
338
|
+
android:id="@+id/guideline2"
|
|
339
|
+
android:layout_width="wrap_content"
|
|
340
|
+
android:layout_height="wrap_content"
|
|
341
|
+
android:orientation="vertical"
|
|
342
|
+
app:layout_constraintGuide_begin="20dp" />
|
|
343
|
+
|
|
344
|
+
<!-- add horizontal end guide line -->
|
|
345
|
+
<androidx.constraintlayout.widget.Guideline
|
|
346
|
+
android:id="@+id/guideline3"
|
|
347
|
+
android:layout_width="wrap_content"
|
|
348
|
+
android:layout_height="wrap_content"
|
|
349
|
+
android:orientation="horizontal"
|
|
350
|
+
app:layout_constraintGuide_end="10dp" />
|
|
351
|
+
|
|
352
|
+
<!-- add vertical end guide line -->
|
|
353
|
+
<androidx.constraintlayout.widget.Guideline
|
|
354
|
+
android:id="@+id/guideline4"
|
|
355
|
+
android:layout_width="wrap_content"
|
|
356
|
+
android:layout_height="wrap_content"
|
|
357
|
+
android:orientation="vertical"
|
|
358
|
+
app:layout_constraintGuide_end="20dp" />
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
5
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
6
|
+
android:id="@+id/fsExoPlayer"
|
|
7
|
+
android:layout_width="match_parent"
|
|
8
|
+
android:layout_height="match_parent"
|
|
9
|
+
android:background="@android:color/black"
|
|
10
|
+
android:keepScreenOn="true"
|
|
11
|
+
tools:context="com.jeep.plugin.capacitor.capacitorvideoplayer.FullscreenExoPlayerFragment">
|
|
12
|
+
|
|
13
|
+
<com.google.android.exoplayer2.ui.StyledPlayerView
|
|
14
|
+
android:id="@+id/videoViewId"
|
|
15
|
+
android:layout_width="match_parent"
|
|
16
|
+
android:layout_height="match_parent"
|
|
17
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
18
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
19
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
20
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
21
|
+
app:use_controller="true"
|
|
22
|
+
app:show_buffering="never"
|
|
23
|
+
app:animation_enabled="false"
|
|
24
|
+
android:animateLayoutChanges="true"
|
|
25
|
+
app:controller_layout_id="@layout/exo_playback_control_view"/>
|
|
26
|
+
|
|
27
|
+
<ProgressBar
|
|
28
|
+
android:id="@+id/indeterminateBar"
|
|
29
|
+
android:layout_width="wrap_content"
|
|
30
|
+
android:layout_height="wrap_content"
|
|
31
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
32
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
33
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
34
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
35
|
+
android:indeterminateTint="#FFFFFF"
|
|
36
|
+
android:fitsSystemWindows="true"/>
|
|
37
|
+
|
|
38
|
+
<LinearLayout
|
|
39
|
+
android:id="@+id/linearLayout"
|
|
40
|
+
android:layout_width="wrap_content"
|
|
41
|
+
android:layout_height="wrap_content"
|
|
42
|
+
android:background="@android:color/transparent"
|
|
43
|
+
android:orientation="horizontal"
|
|
44
|
+
android:layout_marginTop="50dp"
|
|
45
|
+
android:layout_marginLeft="20dp"
|
|
46
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
47
|
+
app:layout_constraintTop_toTopOf="parent">
|
|
48
|
+
|
|
49
|
+
</LinearLayout>
|
|
50
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:background="@color/white"
|
|
8
|
+
tools:context="com.jeep.plugin.capacitor.capacitorvideoplayer.PickerVideo.PickerVideoFragment">
|
|
9
|
+
|
|
10
|
+
<androidx.recyclerview.widget.RecyclerView
|
|
11
|
+
android:id="@+id/recyclerView_videos"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="match_parent"
|
|
14
|
+
android:paddingEnd="16dp"
|
|
15
|
+
android:paddingRight="16dp"
|
|
16
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
17
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
|
18
|
+
app:layout_constraintRight_toRightOf="parent"
|
|
19
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
20
|
+
|
|
21
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="wrap_content"
|
|
7
|
+
android:orientation="vertical">
|
|
8
|
+
|
|
9
|
+
<androidx.cardview.widget.CardView
|
|
10
|
+
android:id="@+id/cardView"
|
|
11
|
+
android:layout_width="0dp"
|
|
12
|
+
android:layout_height="wrap_content"
|
|
13
|
+
android:layout_marginStart="10dp"
|
|
14
|
+
android:layout_marginTop="10dp"
|
|
15
|
+
android:layout_marginEnd="10dp"
|
|
16
|
+
android:layout_marginBottom="10dp"
|
|
17
|
+
app:cardBackgroundColor="@color/grey"
|
|
18
|
+
app:cardCornerRadius="8dp"
|
|
19
|
+
app:cardElevation="10dp"
|
|
20
|
+
app:contentPadding="5dp"
|
|
21
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
22
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
23
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
24
|
+
app:layout_constraintTop_toTopOf="parent">
|
|
25
|
+
|
|
26
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
27
|
+
android:layout_width="match_parent"
|
|
28
|
+
android:layout_height="match_parent">
|
|
29
|
+
|
|
30
|
+
<ImageView
|
|
31
|
+
android:id="@+id/tv_thumbnail"
|
|
32
|
+
android:layout_width="wrap_content"
|
|
33
|
+
android:layout_height="wrap_content"
|
|
34
|
+
android:layout_marginTop="2dp"
|
|
35
|
+
android:layout_marginBottom="2dp"
|
|
36
|
+
app:layout_constraintBottom_toTopOf="@+id/tv_title"
|
|
37
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
38
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
39
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
40
|
+
app:srcCompat="@drawable/ic_img_16_9_background" />
|
|
41
|
+
|
|
42
|
+
<TextView
|
|
43
|
+
android:id="@+id/tv_title"
|
|
44
|
+
android:layout_width="wrap_content"
|
|
45
|
+
android:layout_height="wrap_content"
|
|
46
|
+
android:layout_marginTop="2dp"
|
|
47
|
+
android:layout_marginBottom="2dp"
|
|
48
|
+
android:fontFamily="sans-serif-black"
|
|
49
|
+
android:text="TextView"
|
|
50
|
+
android:textColor="@color/white"
|
|
51
|
+
android:textSize="14sp"
|
|
52
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
53
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
54
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
55
|
+
app:layout_constraintTop_toBottomOf="@+id/tv_thumbnail" />
|
|
56
|
+
|
|
57
|
+
<TextView
|
|
58
|
+
android:id="@+id/tv_duration"
|
|
59
|
+
android:layout_width="wrap_content"
|
|
60
|
+
android:layout_height="wrap_content"
|
|
61
|
+
android:layout_marginTop="2dp"
|
|
62
|
+
android:layout_marginBottom="2dp"
|
|
63
|
+
android:fontFamily="sans-serif"
|
|
64
|
+
android:text="00:00:00"
|
|
65
|
+
android:textColor="@color/white"
|
|
66
|
+
android:textSize="12sp"
|
|
67
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
|
68
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
69
|
+
app:layout_constraintLeft_toLeftOf="@+id/tv_title"
|
|
70
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
71
|
+
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
|
72
|
+
|
|
73
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
74
|
+
</androidx.cardview.widget.CardView>
|
|
75
|
+
|
|
76
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<color name="grey">#353535</color>
|
|
4
|
+
|
|
5
|
+
<color name="colorPrimary">#6200EE</color>
|
|
6
|
+
<color name="colorPrimaryDark">#3700B3</color>
|
|
7
|
+
<color name="colorAccent">#03DAC5</color>
|
|
8
|
+
<color name="white">#ffffff</color>
|
|
9
|
+
<color name="white_50">#80FFFFFF</color>
|
|
10
|
+
<color name="white_20">#33FFFFFF</color>
|
|
11
|
+
<color name="black">#000000</color>
|
|
12
|
+
<color name="transparent">#00000000</color>
|
|
13
|
+
<color name="black_50">#80000000</color>
|
|
14
|
+
</resources>
|