@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.
Files changed (69) hide show
  1. package/CapacitorVideoPlayer.podspec +17 -17
  2. package/LICENSE +21 -21
  3. package/android/build.gradle +71 -71
  4. package/android/src/main/AndroidManifest.xml +3 -3
  5. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/CapacitorVideoPlayer.java +71 -71
  6. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/CapacitorVideoPlayerPlugin.java +1256 -1256
  7. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/FullscreenExoPlayerFragment.java +1595 -1595
  8. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Notifications/MyRunnable.java +21 -21
  9. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Notifications/NotificationCenter.java +61 -61
  10. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/AdapterVideoList.java +47 -47
  11. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/ModelVideo.java +49 -49
  12. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/PickerVideoFragment.java +119 -119
  13. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/PickerVideo/VideoRecyclerViewHolder.java +65 -65
  14. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Utilities/FilesUtils.java +101 -101
  15. package/android/src/main/java/com/jeep/plugin/capacitor/capacitorvideoplayer/Utilities/FragmentUtils.java +32 -32
  16. package/android/src/main/res/drawable/bg_round_rect_white_50.xml +9 -9
  17. package/android/src/main/res/drawable/bg_rounded_rectangle_white_corner_rounded.xml +10 -10
  18. package/android/src/main/res/drawable/exo_close_btn.xml +11 -11
  19. package/android/src/main/res/drawable/gradient_transparent_middle.xml +12 -12
  20. package/android/src/main/res/drawable/ic_arrow_left.xml +5 -5
  21. package/android/src/main/res/drawable/ic_baseline_lq.xml +7 -7
  22. package/android/src/main/res/drawable/ic_exo_icon_fastforward.xml +35 -35
  23. package/android/src/main/res/drawable/ic_exo_icon_pause.xml +26 -26
  24. package/android/src/main/res/drawable/ic_exo_icon_play.xml +36 -36
  25. package/android/src/main/res/drawable/ic_exo_icon_rewind.xml +35 -35
  26. package/android/src/main/res/drawable/ic_expand.xml +5 -5
  27. package/android/src/main/res/drawable/ic_fit.xml +5 -5
  28. package/android/src/main/res/drawable/ic_image_background.xml +12 -12
  29. package/android/src/main/res/drawable/ic_img_16_9_background.xml +10 -10
  30. package/android/src/main/res/drawable/ic_img_9_16_background.xml +10 -10
  31. package/android/src/main/res/drawable/ic_outline_lock.xml +5 -5
  32. package/android/src/main/res/drawable/ic_outline_lock_open.xml +5 -5
  33. package/android/src/main/res/drawable/ic_pip_white.xml +5 -5
  34. package/android/src/main/res/drawable/ic_views.xml +18 -18
  35. package/android/src/main/res/drawable/ic_zoom.xml +5 -5
  36. package/android/src/main/res/layout/bridge_layout_main.xml +15 -15
  37. package/android/src/main/res/layout/exo_playback_control_view.xml +289 -289
  38. package/android/src/main/res/layout/exoplayer_layout_youtube.xml +361 -361
  39. package/android/src/main/res/layout/fragment_fs_exoplayer.xml +50 -50
  40. package/android/src/main/res/layout/fragment_picker_video.xml +21 -21
  41. package/android/src/main/res/layout/row_video.xml +76 -76
  42. package/android/src/main/res/values/colors.xml +14 -14
  43. package/android/src/main/res/values/strings.xml +3 -3
  44. package/android/src/main/res/values/styles.xml +3 -3
  45. package/dist/docs.json +14 -14
  46. package/ios/Plugin/CapacitorVideoPlayer.swift +63 -63
  47. package/ios/Plugin/CapacitorVideoPlayerPlugin.h +10 -10
  48. package/ios/Plugin/CapacitorVideoPlayerPlugin.m +22 -22
  49. package/ios/Plugin/CapacitorVideoPlayerPlugin.swift +631 -631
  50. package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.AVPlayerViewController.swift +59 -59
  51. package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.File.swift +126 -126
  52. package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Fullscreen.swift +94 -94
  53. package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Notifications.swift +140 -140
  54. package/ios/Plugin/Extensions/CapacitorVideoPlayerPlugin.Observers.swift +180 -180
  55. package/ios/Plugin/Info.plist +24 -24
  56. package/ios/Plugin/VideoPicker/VideoHelper.swift +127 -127
  57. package/ios/Plugin/VideoPicker/VideoPickerViewController.swift +144 -144
  58. package/ios/Plugin/VideoPlayer/Extensions/AVURLAsset.swift +18 -18
  59. package/ios/Plugin/VideoPlayer/Extensions/AllOrientationAVPlayerController.swift +12 -12
  60. package/ios/Plugin/VideoPlayer/Extensions/CMTime.swift +23 -23
  61. package/ios/Plugin/VideoPlayer/Extensions/LandscapeAVPlayerController.swift +12 -12
  62. package/ios/Plugin/VideoPlayer/Extensions/Notification.Name.swift +18 -18
  63. package/ios/Plugin/VideoPlayer/Extensions/PortraitAVPlayerController.swift +12 -12
  64. package/ios/Plugin/VideoPlayer/Extensions/View.swift +54 -54
  65. package/ios/Plugin/VideoPlayer/FullScreenVideoPlayerView.swift +601 -601
  66. package/ios/Plugin/VideoPlayer/Models/Video.swift +28 -28
  67. package/ios/Plugin/VideoPlayer/Models/VideoModel.swift +42 -42
  68. package/package.json +92 -92
  69. package/readme.md +196 -190
package/readme.md CHANGED
@@ -1,190 +1,196 @@
1
- <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
2
- <h3 align="center">Video Player</h3>
3
- <p align="center"><strong><code>capacitor-video-player</code></strong></p>
4
- <br>
5
- <p align="center" style="font-size:50px;color:red"><strong>CAPACITOR 6</strong></p><br>
6
- <br>
7
- <p align="center" style="font-size:20px;color:red"><a href="https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Jean_Pierre_Queau.md"><strong>Special note from Jean Pierre Quéau the original founder of this project.</strong></a></p>
8
- <br>
9
- <p align="center">
10
- Capacitor Video Player Plugin is a custom Native Capacitor plugin to play a video
11
- <br>
12
- <strong>fullscreen</strong> on IOS, Android, Web and Electron platforms
13
- <br>
14
- <strong>embedded</strong> on Web and Electron platforms
15
- </p>
16
-
17
- <p align="center">
18
- <img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" />
19
- <a href="https://github.com/jepiqueau/capacitor-video-player/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/workflow/status/jepiqueau/capacitor-video-player/CI?style=flat-square" /></a>
20
- <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/l/capacitor-video-player.svg?style=flat-square" /></a>
21
- <br>
22
- <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/dw/capacitor-video-player?style=flat-square" /></a>
23
- <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/v/capacitor-video-player?style=flat-square" /></a>
24
- <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
25
- <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-10-orange?style=flat-square" /></a>
26
- <!-- ALL-CONTRIBUTORS-BADGE:END -->
27
- </p>
28
-
29
- ## Maintainers
30
-
31
- | Maintainer | GitHub | Social | Active |
32
- | ----------------- | ------------------------------------------- | ------ | ------ |
33
- | Harmon Wood | [harmonwood](https://github.com/harmonwood) | | ✅ |
34
- | Quéau Jean Pierre | [jepiqueau](https://github.com/jepiqueau) | | ❌ |
35
-
36
- ## LATEST FOR CAPACITOR 6 (main)
37
-
38
- ## Browser Support
39
-
40
- The plugin follows the guidelines from the `Capacitor Team`,
41
-
42
- - [Capacitor Browser Support](https://capacitorjs.com/docs/v3/web#browser-support)
43
-
44
- meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/).
45
-
46
- ## Installation
47
-
48
- ```bash
49
- npm install --save capacitor-video-player
50
- npx cap sync
51
- npx cap sync @capacitor-community/electron
52
- ```
53
-
54
- ### Build
55
- Then build YOUR_APPLICATION
56
-
57
- ```
58
- npm run build
59
- npx cap copy
60
- npx cap copy web
61
- npx cap copy @capacitor-community/electron
62
- npx cap open android
63
- npx cap open ios
64
- npx cap open @capacitor-community/electron
65
- npx cap serve
66
- ```
67
-
68
- ## Configuration
69
-
70
- No configuration required for this plugin
71
-
72
- ## Supported methods
73
-
74
- | Name | Android | iOS | Electron | Web |
75
- | :--------------------------------- | :------ | :-- | :------- | :-- |
76
- | initPlayer (mode fullscreen) | ✅ | ✅ | ✅ | ✅ |
77
- | initPlayer (mode embedded) | ❌ | ❌ | ✅ | ✅ |
78
- | initPlayer (url assets) | ✅ | ✅ | ✅ | ✅ |
79
- | initPlayer (url internal) | ✅ | ✅ | ❌ | ❌ |
80
- | initPlayer (url application/files) | ✅ | ✅ | ❌ | ❌ |
81
- | initPlayer (subtitles) | ✅ | ✅ | ❌ | ❌ |
82
- | initPlayer (headers) | ✅ | ✅ | ❌ | ❌ |
83
- | initPlayer (title) | ✅ | ✅ | ❌ | ❌ |
84
- | initPlayer (smallTitle) | ✅ | ✅ | ❌ | ❌ |
85
- | initPlayer (accentColor) | ✅ | ❌ | ❌ | ❌ |
86
- | initPlayer (chromecast) | ✅ | ❌ | ❌ | ❌ |
87
- | initPlayer (artwork) | ✅ | ✅ | ❌ | ❌ |
88
- | isPlaying | ✅ | ✅ | ✅ | ✅ |
89
- | play | ✅ | ✅ | ✅ | ✅ |
90
- | pause | ✅ | ✅ | ✅ | ✅ |
91
- | getCurrentTime | ✅ | ✅ | ✅ | ✅ |
92
- | setCurrentTime | ✅ | ✅ | ✅ | ✅ |
93
- | getDuration | ✅ | ✅ | ✅ | ✅ |
94
- | getMuted | ✅ | ✅ | ✅ | ✅ |
95
- | setMuted | ✅ | ✅ | ✅ | ✅ |
96
- | getVolume | ✅ | ✅ | ✅ | ✅ |
97
- | setVolume | ✅ | ✅ | ✅ | ✅ |
98
- | stopAllPlayers | ✅ | ✅ | ✅ | ✅ |
99
- | getRate | ✅ | ✅ | ✅ | ✅ |
100
- | setRate | ✅ | ✅ | ✅ | ✅ |
101
- | showController | ✅ | ❌ | ❌ | ❌ |
102
- | isControllerIsFullyVisible | ✅ | ❌ | ❌ | ❌ |
103
- | exitPlayer | ✅ | ❌ | ❌ | ❌ |
104
-
105
- ## Supported listeners
106
-
107
- | Name | Android | iOS | Electron | Web |
108
- | :---------------------- | :------ | :-- | :------- | :-- |
109
- | jeepCapVideoPlayerReady | ✅ | ✅ | ✅ | ✅ |
110
- | jeepCapVideoPlayerPlay | ✅ | ✅ | ✅ | ✅ |
111
- | jeepCapVideoPlayerPause | ✅ | ✅ | ✅ | ✅ |
112
- | jeepCapVideoPlayerEnded | ✅ | ✅ | ✅ | ✅ |
113
- | jeepCapVideoPlayerExit | ✅ | ✅ | ✅ | ✅ |
114
-
115
- ## Documentation
116
-
117
- [API_Documentation](https://www.capacitorvideoplayer.com/API/)
118
-
119
- ## Tutorials Blog
120
-
121
- - [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
122
-
123
-
124
- ## Applications demonstrating the use of the plugin
125
-
126
- ### Capacitor 5 Apps
127
-
128
- - [ionic7-angular-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/ionic7-angular-videoplayer-app)
129
-
130
- - [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
131
-
132
-
133
- ### Application Starter (Not yet updated to 5.0.0)
134
-
135
- - [angular-video-player-app-starter](https://github.com/jepiqueau/angular-videoplayer-app-starter)
136
-
137
- - [react-video-player-app-starter](https://github.com/jepiqueau/react-video-player-app-starter)
138
-
139
- - [vite-react-videoplayer-app](https://github.com/jepiqueau/vite-react-videoplayer-app)
140
-
141
- - [vue-videoplayer-app](https://github.com/jepiqueau/vue-videoplayer-app-starter)
142
-
143
- ## Usage 2.4.7
144
-
145
- - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
146
-
147
- - [see usage 2.4.7](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_2.4.7.md)
148
-
149
- ## Usage > 3.0.0
150
-
151
- - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
152
-
153
- - [see usage > 3.0.0](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_3.0.0.md)
154
-
155
- ## Dependencies
156
-
157
- - hls.js for HLS videos on Web and Electron platforms
158
- - ExoPlayer for HLS, DASH, SmoothStreaming videos on Android platform
159
-
160
- ## Contributors ✨
161
-
162
- Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
163
-
164
- <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
165
- <!-- prettier-ignore-start -->
166
- <!-- markdownlint-disable -->
167
- <table>
168
- <tr>
169
- <td align="center"><a href="https://github.com/jepiqueau"><img src="https://avatars3.githubusercontent.com/u/16580653?v=4" width="100px;" alt=""/><br /><sub><b>Jean Pierre Quéau</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=jepiqueau" title="Code">💻</a></td>
170
- <td align="center"><a href="https://github.com/yelhouti"><img src="https://avatars.githubusercontent.com/u/5471639?v=4" width="100px;" alt=""/><br /><sub><b>Yelhouti</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=yelhouti" title="Code">💻</a></td>
171
- <td align="center"><a href="https://github.com/mamane10"><img src="https://avatars.githubusercontent.com/u/46500089?v=4" width="100px;" alt=""/><br /><sub><b>Mamane10</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=mamane10" title="Code">💻</a></td>
172
- <td align="center"><a href="https://github.com/KANekT"><img src="https://avatars.githubusercontent.com/u/580273?v=4" width="100px;" alt=""/><br /><sub><b>Пронин Андрей KANekT</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=KANekT" title="Code">💻</a></td>
173
- <td align="center"><a href="https://github.com/mueslirieger"><img src="https://avatars.githubusercontent.com/u/20973893?v=4" width="100px;" alt=""/><br /><sub><b>Michael Rieger</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=mueslirieger" title="Code">💻</a></td>
174
- <td align="center"><a href="https://github.com/PhantomPainX"><img src="https://avatars.githubusercontent.com/u/47803967?v=4" width="100px;" alt=""/><br /><sub><b>Manuel García Marín</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=PhantomPainX" title="Code">💻</a></td>
175
- <td align="center"><a href="https://github.com/j-oppenhuis"><img src="https://avatars.githubusercontent.com/u/46529655?v=4" width="100px;" alt=""/><br /><sub><b>Jelle Oppenhuis</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=j-oppenhuis" title="Code">💻</a></td>
176
- <td align="center"><a href="https://github.com/fegauthier"><img src="https://avatars.githubusercontent.com/u/12112673?v=4" width="100px;" alt=""/><br /><sub><b>fegauthier</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=fegauthier" title="Code">💻</a></td>
177
-
178
- </tr>
179
- <tr>
180
- <td align="center"><a href="https://github.com/harmonwood"><img src="https://avatars.githubusercontent.com/u/460843?v=4" width="100px;" alt="Harmon Wood"/><br /><sub><b>Harmon Wood</b></sub></a><br /><a href="https://github.com/harmonwood/capacitor-video-player/commits?author=harmonwood" title="Code">💻</a></td>
181
- <td align="center"><a href="https://github.com/eduardoRoth"><img src="https://avatars.githubusercontent.com/u/5419161?v=4" width="100px;" alt="Eduardo Roth"/><br /><sub><b>Eduardo Roth</b></sub></a><br /><a href="https://github.com/harmonwood/capacitor-video-player/commits?author=eduardoroth" title="Code">💻</a></td>
182
- </tr>
183
- </table>
184
-
185
- <!-- markdownlint-enable -->
186
- <!-- prettier-ignore-end -->
187
-
188
- <!-- ALL-CONTRIBUTORS-LIST:END -->
189
-
190
- This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
1
+ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
2
+ <h3 align="center">Video Player</h3>
3
+ <p align="center"><strong><code>capacitor-video-player</code></strong></p>
4
+ <br>
5
+ <p align="center" style="font-size:50px;color:red"><strong>CAPACITOR 6</strong></p><br>
6
+ <br>
7
+ <p align="center" style="font-size:20px;color:red"><a href="https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Jean_Pierre_Queau.md"><strong>Special note from Jean Pierre Quéau the original founder of this project.</strong></a></p>
8
+ <br>
9
+ <p align="center">
10
+ Capacitor Video Player Plugin is a custom Native Capacitor plugin to play a video
11
+ <br>
12
+ <strong>fullscreen</strong> on IOS, Android, Web and Electron platforms
13
+ <br>
14
+ <strong>embedded</strong> on Web and Electron platforms
15
+ </p>
16
+
17
+ <p align="center">
18
+ <img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" />
19
+ <a href="https://github.com/jepiqueau/capacitor-video-player/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/workflow/status/jepiqueau/capacitor-video-player/CI?style=flat-square" /></a>
20
+ <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/l/capacitor-video-player.svg?style=flat-square" /></a>
21
+ <br>
22
+ <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/dw/capacitor-video-player?style=flat-square" /></a>
23
+ <a href="https://www.npmjs.com/package/capacitor-video-player"><img src="https://img.shields.io/npm/v/capacitor-video-player?style=flat-square" /></a>
24
+ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
25
+ <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-10-orange?style=flat-square" /></a>
26
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
27
+ </p>
28
+
29
+ ## Contributing
30
+
31
+ If you wish to contribute to the plugin, **please ensure you read the [CONTRIBUTING.md](CONTRIBUTING.md) guide first.**
32
+
33
+ It contains critical information about our Pull Request structure (Conventional Commits), PR preview environments (`pkg.pr.new`), and automated release management.
34
+
35
+ ## Maintainers
36
+
37
+ | Maintainer | GitHub | Social | Active |
38
+ | ----------------- | ------------------------------------------- | ------ | ------ |
39
+ | Harmon Wood | [harmonwood](https://github.com/harmonwood) | | ✅ |
40
+ | Quéau Jean Pierre | [jepiqueau](https://github.com/jepiqueau) | | ❌ |
41
+
42
+ ## LATEST FOR CAPACITOR 6 (main)
43
+
44
+ ## Browser Support
45
+
46
+ The plugin follows the guidelines from the `Capacitor Team`,
47
+
48
+ - [Capacitor Browser Support](https://capacitorjs.com/docs/v3/web#browser-support)
49
+
50
+ meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/).
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ npm install --save capacitor-video-player
56
+ npx cap sync
57
+ npx cap sync @capacitor-community/electron
58
+ ```
59
+
60
+ ### Build
61
+ Then build YOUR_APPLICATION
62
+
63
+ ```
64
+ npm run build
65
+ npx cap copy
66
+ npx cap copy web
67
+ npx cap copy @capacitor-community/electron
68
+ npx cap open android
69
+ npx cap open ios
70
+ npx cap open @capacitor-community/electron
71
+ npx cap serve
72
+ ```
73
+
74
+ ## Configuration
75
+
76
+ No configuration required for this plugin
77
+
78
+ ## Supported methods
79
+
80
+ | Name | Android | iOS | Electron | Web |
81
+ | :--------------------------------- | :------ | :-- | :------- | :-- |
82
+ | initPlayer (mode fullscreen) | ✅ | ✅ | ✅ | ✅ |
83
+ | initPlayer (mode embedded) | ❌ | ❌ | ✅ | ✅ |
84
+ | initPlayer (url assets) | ✅ | ✅ | ✅ | ✅ |
85
+ | initPlayer (url internal) | ✅ | ✅ | ❌ | ❌ |
86
+ | initPlayer (url application/files) | ✅ | ✅ | ❌ | ❌ |
87
+ | initPlayer (subtitles) | ✅ | ✅ | ❌ | ❌ |
88
+ | initPlayer (headers) | ✅ | ✅ | ❌ | ❌ |
89
+ | initPlayer (title) | ✅ | ✅ | ❌ | ❌ |
90
+ | initPlayer (smallTitle) | ✅ | ✅ | ❌ | ❌ |
91
+ | initPlayer (accentColor) | ✅ | ❌ | ❌ | ❌ |
92
+ | initPlayer (chromecast) | ✅ | ❌ | ❌ | ❌ |
93
+ | initPlayer (artwork) | ✅ | ✅ | ❌ | ❌ |
94
+ | isPlaying | ✅ | ✅ | ✅ | ✅ |
95
+ | play | ✅ | ✅ | ✅ | ✅ |
96
+ | pause | ✅ | ✅ | ✅ | ✅ |
97
+ | getCurrentTime | ✅ | ✅ | ✅ | ✅ |
98
+ | setCurrentTime | ✅ | ✅ | ✅ | ✅ |
99
+ | getDuration | ✅ | ✅ | ✅ | ✅ |
100
+ | getMuted | ✅ | ✅ | ✅ | ✅ |
101
+ | setMuted | ✅ | ✅ | ✅ | ✅ |
102
+ | getVolume | ✅ | ✅ | ✅ | ✅ |
103
+ | setVolume | ✅ | ✅ | ✅ | ✅ |
104
+ | stopAllPlayers | ✅ | ✅ | ✅ | ✅ |
105
+ | getRate | ✅ | ✅ | ✅ | ✅ |
106
+ | setRate | ✅ | ✅ | ✅ | ✅ |
107
+ | showController | ✅ | ❌ | ❌ | ❌ |
108
+ | isControllerIsFullyVisible | ✅ | ❌ | ❌ | ❌ |
109
+ | exitPlayer | ✅ | ❌ | ❌ | ❌ |
110
+
111
+ ## Supported listeners
112
+
113
+ | Name | Android | iOS | Electron | Web |
114
+ | :---------------------- | :------ | :-- | :------- | :-- |
115
+ | jeepCapVideoPlayerReady | ✅ | ✅ | ✅ | ✅ |
116
+ | jeepCapVideoPlayerPlay | ✅ | ✅ | ✅ | ✅ |
117
+ | jeepCapVideoPlayerPause | ✅ | ✅ | ✅ | ✅ |
118
+ | jeepCapVideoPlayerEnded | ✅ | ✅ | ✅ | ✅ |
119
+ | jeepCapVideoPlayerExit | ✅ | ✅ | ✅ | ✅ |
120
+
121
+ ## Documentation
122
+
123
+ [API_Documentation](https://www.capacitorvideoplayer.com/API/)
124
+
125
+ ## Tutorials Blog
126
+
127
+ - [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
128
+
129
+
130
+ ## Applications demonstrating the use of the plugin
131
+
132
+ ### Capacitor 5 Apps
133
+
134
+ - [ionic7-angular-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/ionic7-angular-videoplayer-app)
135
+
136
+ - [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
137
+
138
+
139
+ ### Application Starter (Not yet updated to 5.0.0)
140
+
141
+ - [angular-video-player-app-starter](https://github.com/jepiqueau/angular-videoplayer-app-starter)
142
+
143
+ - [react-video-player-app-starter](https://github.com/jepiqueau/react-video-player-app-starter)
144
+
145
+ - [vite-react-videoplayer-app](https://github.com/jepiqueau/vite-react-videoplayer-app)
146
+
147
+ - [vue-videoplayer-app](https://github.com/jepiqueau/vue-videoplayer-app-starter)
148
+
149
+ ## Usage 2.4.7
150
+
151
+ - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
152
+
153
+ - [see usage 2.4.7](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_2.4.7.md)
154
+
155
+ ## Usage > 3.0.0
156
+
157
+ - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
158
+
159
+ - [see usage > 3.0.0](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_3.0.0.md)
160
+
161
+ ## Dependencies
162
+
163
+ - hls.js for HLS videos on Web and Electron platforms
164
+ - ExoPlayer for HLS, DASH, SmoothStreaming videos on Android platform
165
+
166
+ ## Contributors ✨
167
+
168
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
169
+
170
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
171
+ <!-- prettier-ignore-start -->
172
+ <!-- markdownlint-disable -->
173
+ <table>
174
+ <tr>
175
+ <td align="center"><a href="https://github.com/jepiqueau"><img src="https://avatars3.githubusercontent.com/u/16580653?v=4" width="100px;" alt=""/><br /><sub><b>Jean Pierre Quéau</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=jepiqueau" title="Code">💻</a></td>
176
+ <td align="center"><a href="https://github.com/yelhouti"><img src="https://avatars.githubusercontent.com/u/5471639?v=4" width="100px;" alt=""/><br /><sub><b>Yelhouti</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=yelhouti" title="Code">💻</a></td>
177
+ <td align="center"><a href="https://github.com/mamane10"><img src="https://avatars.githubusercontent.com/u/46500089?v=4" width="100px;" alt=""/><br /><sub><b>Mamane10</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=mamane10" title="Code">💻</a></td>
178
+ <td align="center"><a href="https://github.com/KANekT"><img src="https://avatars.githubusercontent.com/u/580273?v=4" width="100px;" alt=""/><br /><sub><b>Пронин Андрей KANekT</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=KANekT" title="Code">💻</a></td>
179
+ <td align="center"><a href="https://github.com/mueslirieger"><img src="https://avatars.githubusercontent.com/u/20973893?v=4" width="100px;" alt=""/><br /><sub><b>Michael Rieger</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=mueslirieger" title="Code">💻</a></td>
180
+ <td align="center"><a href="https://github.com/PhantomPainX"><img src="https://avatars.githubusercontent.com/u/47803967?v=4" width="100px;" alt=""/><br /><sub><b>Manuel García Marín</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=PhantomPainX" title="Code">💻</a></td>
181
+ <td align="center"><a href="https://github.com/j-oppenhuis"><img src="https://avatars.githubusercontent.com/u/46529655?v=4" width="100px;" alt=""/><br /><sub><b>Jelle Oppenhuis</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=j-oppenhuis" title="Code">💻</a></td>
182
+ <td align="center"><a href="https://github.com/fegauthier"><img src="https://avatars.githubusercontent.com/u/12112673?v=4" width="100px;" alt=""/><br /><sub><b>fegauthier</b></sub></a><br /><a href="https://github.com/jepiqueau/capacitor-video-player/commits?author=fegauthier" title="Code">💻</a></td>
183
+
184
+ </tr>
185
+ <tr>
186
+ <td align="center"><a href="https://github.com/harmonwood"><img src="https://avatars.githubusercontent.com/u/460843?v=4" width="100px;" alt="Harmon Wood"/><br /><sub><b>Harmon Wood</b></sub></a><br /><a href="https://github.com/harmonwood/capacitor-video-player/commits?author=harmonwood" title="Code">💻</a></td>
187
+ <td align="center"><a href="https://github.com/eduardoRoth"><img src="https://avatars.githubusercontent.com/u/5419161?v=4" width="100px;" alt="Eduardo Roth"/><br /><sub><b>Eduardo Roth</b></sub></a><br /><a href="https://github.com/harmonwood/capacitor-video-player/commits?author=eduardoroth" title="Code">💻</a></td>
188
+ </tr>
189
+ </table>
190
+
191
+ <!-- markdownlint-enable -->
192
+ <!-- prettier-ignore-end -->
193
+
194
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
195
+
196
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!