@picsa/capacitor-video-player 7.1.0 → 7.2.2
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/CapacitorVideoPlayer.podspec +17 -17
- package/LICENSE +21 -21
- package/android/build.gradle +71 -71
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/CapacitorVideoPlayer.java +71 -71
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/CapacitorVideoPlayerPlugin.java +1256 -1256
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/FullscreenExoPlayerFragment.java +1595 -1595
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Notifications/MyRunnable.java +21 -21
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Notifications/NotificationCenter.java +61 -61
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/AdapterVideoList.java +47 -47
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/ModelVideo.java +49 -49
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/PickerVideoFragment.java +119 -119
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/VideoRecyclerViewHolder.java +65 -65
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Utilities/FilesUtils.java +101 -101
- package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Utilities/FragmentUtils.java +32 -32
- package/android/src/main/res/drawable/bg_round_rect_white_50.xml +9 -9
- package/android/src/main/res/drawable/bg_rounded_rectangle_white_corner_rounded.xml +10 -10
- package/android/src/main/res/drawable/exo_close_btn.xml +11 -11
- package/android/src/main/res/drawable/gradient_transparent_middle.xml +12 -12
- package/android/src/main/res/drawable/ic_arrow_left.xml +5 -5
- package/android/src/main/res/drawable/ic_baseline_lq.xml +7 -7
- package/android/src/main/res/drawable/ic_exo_icon_fastforward.xml +35 -35
- package/android/src/main/res/drawable/ic_exo_icon_pause.xml +26 -26
- package/android/src/main/res/drawable/ic_exo_icon_play.xml +36 -36
- package/android/src/main/res/drawable/ic_exo_icon_rewind.xml +35 -35
- package/android/src/main/res/drawable/ic_expand.xml +5 -5
- package/android/src/main/res/drawable/ic_fit.xml +5 -5
- package/android/src/main/res/drawable/ic_image_background.xml +12 -12
- package/android/src/main/res/drawable/ic_img_16_9_background.xml +10 -10
- package/android/src/main/res/drawable/ic_img_9_16_background.xml +10 -10
- package/android/src/main/res/drawable/ic_outline_lock.xml +5 -5
- package/android/src/main/res/drawable/ic_outline_lock_open.xml +5 -5
- package/android/src/main/res/drawable/ic_pip_white.xml +5 -5
- package/android/src/main/res/drawable/ic_views.xml +18 -18
- package/android/src/main/res/drawable/ic_zoom.xml +5 -5
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -15
- package/android/src/main/res/layout/exo_playback_control_view.xml +289 -289
- package/android/src/main/res/layout/exoplayer_layout_youtube.xml +361 -361
- package/android/src/main/res/layout/fragment_fs_exoplayer.xml +50 -50
- package/android/src/main/res/layout/fragment_picker_video.xml +21 -21
- package/android/src/main/res/layout/row_video.xml +76 -76
- package/android/src/main/res/values/colors.xml +14 -14
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/values/styles.xml +3 -3
- package/dist/docs.json +14 -14
- package/ios/Plugin/CapacitorVideoPlayer.swift +63 -63
- package/ios/Plugin/CapacitorVideoPlayerPlugin.h +10 -10
- package/ios/Plugin/CapacitorVideoPlayerPlugin.m +22 -22
- package/ios/Plugin/CapacitorVideoPlayerPlugin.swift +631 -631
- package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.AVPlayerViewController.swift +59 -59
- package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.File.swift +126 -126
- package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Fullscreen.swift +94 -94
- package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Notifications.swift +140 -140
- package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Observers.swift +180 -180
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/VideoPicker/VideoHelper.swift +127 -127
- package/ios/Plugin/VideoPicker/VideoPickerViewController.swift +144 -144
- package/ios/Plugin/VideoPlayer/Extensions/AVURLAsset.swift +18 -18
- package/ios/Plugin/VideoPlayer/Extensions/AllOrientationAVPlayerController.swift +12 -12
- package/ios/Plugin/VideoPlayer/Extensions/CMTime.swift +23 -23
- package/ios/Plugin/VideoPlayer/Extensions/LandscapeAVPlayerController.swift +12 -12
- package/ios/Plugin/VideoPlayer/Extensions/Notification.Name.swift +18 -18
- package/ios/Plugin/VideoPlayer/Extensions/PortraitAVPlayerController.swift +12 -12
- package/ios/Plugin/VideoPlayer/Extensions/View.swift +54 -54
- package/ios/Plugin/VideoPlayer/FullScreenVideoPlayerView.swift +601 -601
- package/ios/Plugin/VideoPlayer/Models/Video.swift +28 -28
- package/ios/Plugin/VideoPlayer/Models/VideoModel.swift +42 -42
- package/package.json +92 -92
- package/readme.md +196 -190
|
@@ -1,50 +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
|
-
<androidx.media3.ui.PlayerView
|
|
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>
|
|
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
|
+
<androidx.media3.ui.PlayerView
|
|
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>
|
|
@@ -1,21 +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>
|
|
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>
|
|
@@ -1,76 +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>
|
|
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>
|
|
@@ -1,14 +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>
|
|
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>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<resources>
|
|
2
|
-
<string name="my_string">Just a simple string</string>
|
|
3
|
-
</resources>
|
|
1
|
+
<resources>
|
|
2
|
+
<string name="my_string">Just a simple string</string>
|
|
3
|
+
</resources>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<resources>
|
|
2
|
-
|
|
3
|
-
</resources>
|
|
1
|
+
<resources>
|
|
2
|
+
|
|
3
|
+
</resources>
|
package/dist/docs.json
CHANGED
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
{
|
|
446
446
|
"name": "mode",
|
|
447
447
|
"tags": [],
|
|
448
|
-
"docs": "Player mode\
|
|
448
|
+
"docs": "Player mode\n - \"fullscreen\"\n - \"embedded\" (Web only)",
|
|
449
449
|
"complexTypes": [],
|
|
450
450
|
"type": "string | undefined"
|
|
451
451
|
},
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
{
|
|
467
467
|
"name": "language",
|
|
468
468
|
"tags": [],
|
|
469
|
-
"docs": "The language of subtitle\
|
|
469
|
+
"docs": "The language of subtitle\nsee https://github.com/libyal/libfwnt/wiki/Language-Code-identifiers",
|
|
470
470
|
"complexTypes": [],
|
|
471
471
|
"type": "string | undefined"
|
|
472
472
|
},
|
|
@@ -496,42 +496,42 @@
|
|
|
496
496
|
{
|
|
497
497
|
"name": "exitOnEnd",
|
|
498
498
|
"tags": [],
|
|
499
|
-
"docs": "Exit on VideoEnd (iOS, Android)\
|
|
499
|
+
"docs": "Exit on VideoEnd (iOS, Android)\ndefault: true",
|
|
500
500
|
"complexTypes": [],
|
|
501
501
|
"type": "boolean | undefined"
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
"name": "loopOnEnd",
|
|
505
505
|
"tags": [],
|
|
506
|
-
"docs": "Loop on VideoEnd when exitOnEnd false (iOS, Android)\
|
|
506
|
+
"docs": "Loop on VideoEnd when exitOnEnd false (iOS, Android)\ndefault: false",
|
|
507
507
|
"complexTypes": [],
|
|
508
508
|
"type": "boolean | undefined"
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
"name": "pipEnabled",
|
|
512
512
|
"tags": [],
|
|
513
|
-
"docs": "Picture in Picture Enable (iOS, Android)\
|
|
513
|
+
"docs": "Picture in Picture Enable (iOS, Android)\ndefault: true",
|
|
514
514
|
"complexTypes": [],
|
|
515
515
|
"type": "boolean | undefined"
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
518
|
"name": "bkmodeEnabled",
|
|
519
519
|
"tags": [],
|
|
520
|
-
"docs": "Background Mode Enable (iOS, Android)\
|
|
520
|
+
"docs": "Background Mode Enable (iOS, Android)\ndefault: true",
|
|
521
521
|
"complexTypes": [],
|
|
522
522
|
"type": "boolean | undefined"
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
525
|
"name": "showControls",
|
|
526
526
|
"tags": [],
|
|
527
|
-
"docs": "Show Controls Enable (iOS, Android)\
|
|
527
|
+
"docs": "Show Controls Enable (iOS, Android)\ndefault: true",
|
|
528
528
|
"complexTypes": [],
|
|
529
529
|
"type": "boolean | undefined"
|
|
530
530
|
},
|
|
531
531
|
{
|
|
532
532
|
"name": "displayMode",
|
|
533
533
|
"tags": [],
|
|
534
|
-
"docs": "Display Mode [\"all\", \"portrait\", \"landscape\"] (iOS, Android)\
|
|
534
|
+
"docs": "Display Mode [\"all\", \"portrait\", \"landscape\"] (iOS, Android)\ndefault: \"all\"",
|
|
535
535
|
"complexTypes": [],
|
|
536
536
|
"type": "string | undefined"
|
|
537
537
|
},
|
|
@@ -559,42 +559,42 @@
|
|
|
559
559
|
{
|
|
560
560
|
"name": "headers",
|
|
561
561
|
"tags": [],
|
|
562
|
-
"docs": "Headers for the request (iOS, Android)\
|
|
562
|
+
"docs": "Headers for the request (iOS, Android)\nby Manuel García Marín (https://github.com/PhantomPainX)",
|
|
563
563
|
"complexTypes": [],
|
|
564
564
|
"type": "{ [key: string]: string; } | undefined"
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
567
|
"name": "title",
|
|
568
568
|
"tags": [],
|
|
569
|
-
"docs": "Title shown in the player (Android)\
|
|
569
|
+
"docs": "Title shown in the player (Android)\nby Manuel García Marín (https://github.com/PhantomPainX)",
|
|
570
570
|
"complexTypes": [],
|
|
571
571
|
"type": "string | undefined"
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
"name": "smallTitle",
|
|
575
575
|
"tags": [],
|
|
576
|
-
"docs": "Subtitle shown below the title in the player (Android)\
|
|
576
|
+
"docs": "Subtitle shown below the title in the player (Android)\nby Manuel García Marín (https://github.com/PhantomPainX)",
|
|
577
577
|
"complexTypes": [],
|
|
578
578
|
"type": "string | undefined"
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
581
|
"name": "accentColor",
|
|
582
582
|
"tags": [],
|
|
583
|
-
"docs": "ExoPlayer Progress Bar and Spinner color (Android)\
|
|
583
|
+
"docs": "ExoPlayer Progress Bar and Spinner color (Android)\nby Manuel García Marín (https://github.com/PhantomPainX)\nMust be a valid hex color code\ndefault: #FFFFFF",
|
|
584
584
|
"complexTypes": [],
|
|
585
585
|
"type": "string | undefined"
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"name": "chromecast",
|
|
589
589
|
"tags": [],
|
|
590
|
-
"docs": "Chromecast enable/disable (Android)\
|
|
590
|
+
"docs": "Chromecast enable/disable (Android)\nby Manuel García Marín (https://github.com/PhantomPainX)\ndefault: true",
|
|
591
591
|
"complexTypes": [],
|
|
592
592
|
"type": "boolean | undefined"
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
"name": "artwork",
|
|
596
596
|
"tags": [],
|
|
597
|
-
"docs": "Artwork url to be shown in Chromecast player\
|
|
597
|
+
"docs": "Artwork url to be shown in Chromecast player\nby Manuel García Marín (https://github.com/PhantomPainX)\ndefault: \"\"",
|
|
598
598
|
"complexTypes": [],
|
|
599
599
|
"type": "string | undefined"
|
|
600
600
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
import AVKit
|
|
3
|
-
import UIKit
|
|
4
|
-
enum CapacitorVideoPlayerError: Error {
|
|
5
|
-
case failed(message: String)
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@objc public class CapacitorVideoPlayer: NSObject {
|
|
9
|
-
|
|
10
|
-
@objc public func echo(_ value: String) -> String {
|
|
11
|
-
return value
|
|
12
|
-
}
|
|
13
|
-
// swiftlint:disable function_parameter_count
|
|
14
|
-
@objc public func createFullscreenPlayer(playerId: String,
|
|
15
|
-
videoUrl: URL,
|
|
16
|
-
rate: Float,
|
|
17
|
-
exitOnEnd: Bool,
|
|
18
|
-
loopOnEnd: Bool,
|
|
19
|
-
pipEnabled: Bool,
|
|
20
|
-
showControls: Bool,
|
|
21
|
-
displayMode: String,
|
|
22
|
-
subTitleUrl: URL?,
|
|
23
|
-
language: String?,
|
|
24
|
-
headers: [String: String]?,
|
|
25
|
-
options: [String: Any]?,
|
|
26
|
-
title: String?,
|
|
27
|
-
smallTitle: String?,
|
|
28
|
-
artwork: String?
|
|
29
|
-
|
|
30
|
-
) -> FullScreenVideoPlayerView {
|
|
31
|
-
|
|
32
|
-
let videoPlayerFullScreenView = FullScreenVideoPlayerView(
|
|
33
|
-
url: videoUrl, rate: rate, playerId: playerId,
|
|
34
|
-
exitOnEnd: exitOnEnd, loopOnEnd: loopOnEnd,
|
|
35
|
-
pipEnabled: pipEnabled, showControls: showControls,
|
|
36
|
-
displayMode: displayMode,
|
|
37
|
-
stUrl: subTitleUrl, stLanguage: language,
|
|
38
|
-
stHeaders: headers, stOptions: options,
|
|
39
|
-
title: title, smallTitle: smallTitle, artwork: artwork)
|
|
40
|
-
return videoPlayerFullScreenView
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// swiftlint:disable function_parameter_count
|
|
44
|
-
@objc public func pickVideoFromInternal(rate: Float, exitOnEnd: Bool,
|
|
45
|
-
loopOnEnd: Bool,
|
|
46
|
-
pipEnabled: Bool,
|
|
47
|
-
backModeEnabled: Bool,
|
|
48
|
-
showControls: Bool,
|
|
49
|
-
displayMode: String) ->
|
|
50
|
-
VideoPickerViewController {
|
|
51
|
-
let videoPickerViewController = VideoPickerViewController()
|
|
52
|
-
videoPickerViewController.rate = rate
|
|
53
|
-
videoPickerViewController.exitOnEnd = exitOnEnd
|
|
54
|
-
videoPickerViewController.loopOnEnd = loopOnEnd
|
|
55
|
-
videoPickerViewController.pipEnabled = pipEnabled
|
|
56
|
-
videoPickerViewController.backModeEnabled = backModeEnabled
|
|
57
|
-
videoPickerViewController.showControls = showControls
|
|
58
|
-
videoPickerViewController.displayMode = displayMode
|
|
59
|
-
|
|
60
|
-
return videoPickerViewController
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
// swiftlint:enable function_parameter_count
|
|
1
|
+
import Foundation
|
|
2
|
+
import AVKit
|
|
3
|
+
import UIKit
|
|
4
|
+
enum CapacitorVideoPlayerError: Error {
|
|
5
|
+
case failed(message: String)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@objc public class CapacitorVideoPlayer: NSObject {
|
|
9
|
+
|
|
10
|
+
@objc public func echo(_ value: String) -> String {
|
|
11
|
+
return value
|
|
12
|
+
}
|
|
13
|
+
// swiftlint:disable function_parameter_count
|
|
14
|
+
@objc public func createFullscreenPlayer(playerId: String,
|
|
15
|
+
videoUrl: URL,
|
|
16
|
+
rate: Float,
|
|
17
|
+
exitOnEnd: Bool,
|
|
18
|
+
loopOnEnd: Bool,
|
|
19
|
+
pipEnabled: Bool,
|
|
20
|
+
showControls: Bool,
|
|
21
|
+
displayMode: String,
|
|
22
|
+
subTitleUrl: URL?,
|
|
23
|
+
language: String?,
|
|
24
|
+
headers: [String: String]?,
|
|
25
|
+
options: [String: Any]?,
|
|
26
|
+
title: String?,
|
|
27
|
+
smallTitle: String?,
|
|
28
|
+
artwork: String?
|
|
29
|
+
|
|
30
|
+
) -> FullScreenVideoPlayerView {
|
|
31
|
+
|
|
32
|
+
let videoPlayerFullScreenView = FullScreenVideoPlayerView(
|
|
33
|
+
url: videoUrl, rate: rate, playerId: playerId,
|
|
34
|
+
exitOnEnd: exitOnEnd, loopOnEnd: loopOnEnd,
|
|
35
|
+
pipEnabled: pipEnabled, showControls: showControls,
|
|
36
|
+
displayMode: displayMode,
|
|
37
|
+
stUrl: subTitleUrl, stLanguage: language,
|
|
38
|
+
stHeaders: headers, stOptions: options,
|
|
39
|
+
title: title, smallTitle: smallTitle, artwork: artwork)
|
|
40
|
+
return videoPlayerFullScreenView
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// swiftlint:disable function_parameter_count
|
|
44
|
+
@objc public func pickVideoFromInternal(rate: Float, exitOnEnd: Bool,
|
|
45
|
+
loopOnEnd: Bool,
|
|
46
|
+
pipEnabled: Bool,
|
|
47
|
+
backModeEnabled: Bool,
|
|
48
|
+
showControls: Bool,
|
|
49
|
+
displayMode: String) ->
|
|
50
|
+
VideoPickerViewController {
|
|
51
|
+
let videoPickerViewController = VideoPickerViewController()
|
|
52
|
+
videoPickerViewController.rate = rate
|
|
53
|
+
videoPickerViewController.exitOnEnd = exitOnEnd
|
|
54
|
+
videoPickerViewController.loopOnEnd = loopOnEnd
|
|
55
|
+
videoPickerViewController.pipEnabled = pipEnabled
|
|
56
|
+
videoPickerViewController.backModeEnabled = backModeEnabled
|
|
57
|
+
videoPickerViewController.showControls = showControls
|
|
58
|
+
videoPickerViewController.displayMode = displayMode
|
|
59
|
+
|
|
60
|
+
return videoPickerViewController
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
// swiftlint:enable function_parameter_count
|
|
64
64
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
|
|
3
|
-
//! Project version number for Plugin.
|
|
4
|
-
FOUNDATION_EXPORT double PluginVersionNumber;
|
|
5
|
-
|
|
6
|
-
//! Project version string for Plugin.
|
|
7
|
-
FOUNDATION_EXPORT const unsigned char PluginVersionString[];
|
|
8
|
-
|
|
9
|
-
// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
|
|
10
|
-
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
|
|
3
|
+
//! Project version number for Plugin.
|
|
4
|
+
FOUNDATION_EXPORT double PluginVersionNumber;
|
|
5
|
+
|
|
6
|
+
//! Project version string for Plugin.
|
|
7
|
+
FOUNDATION_EXPORT const unsigned char PluginVersionString[];
|
|
8
|
+
|
|
9
|
+
// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
|
|
10
|
+
|