@picsa/capacitor-video-player 7.1.0 → 7.2.3

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 +1591 -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 +227 -190
package/readme.md CHANGED
@@ -1,190 +1,227 @@
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>@picsa/capacitor-video-player</code></strong></p>
4
+ <br>
5
+ <p align="center" style="font-size:50px;color:green"><strong>CAPACITOR 7</strong></p><br>
6
+ <br>
7
+ <p align="center" style="font-size:16px">
8
+ <strong>This is a community fork</strong> providing Capacitor 7 support.<br>
9
+ The original <a href="https://github.com/harmonwood/capacitor-video-player">capacitor-video-player</a> project is not currently maintained.<br>
10
+ Use this as a <strong>drop-in replacement</strong> for Capacitor 7+.
11
+ </p>
12
+ <br>
13
+ <p align="center">
14
+ Capacitor Video Player Plugin is a custom Native Capacitor plugin to play a video
15
+ <br>
16
+ <strong>fullscreen</strong> on IOS, Android, Web and Electron platforms
17
+ <br>
18
+ <strong>embedded</strong> on Web and Electron platforms
19
+ </p>
20
+
21
+ <p align="center">
22
+ <img src="https://img.shields.io/maintenance/yes/2026?style=flat-square" />
23
+ <a href="https://www.npmjs.com/package/@picsa/capacitor-video-player"><img src="https://img.shields.io/npm/l/@picsa/capacitor-video-player.svg?style=flat-square" /></a>
24
+ <br>
25
+ <a href="https://www.npmjs.com/package/@picsa/capacitor-video-player"><img src="https://img.shields.io/npm/dw/@picsa/capacitor-video-player?style=flat-square" /></a>
26
+ <a href="https://www.npmjs.com/package/@picsa/capacitor-video-player"><img src="https://img.shields.io/npm/v/@picsa/capacitor-video-player?style=flat-square" /></a>
27
+ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
28
+ <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-10-orange?style=flat-square" /></a>
29
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
30
+ </p>
31
+
32
+ ## Contributing
33
+
34
+ If you wish to contribute to the plugin, **please ensure you read the [CONTRIBUTING.md](CONTRIBUTING.md) guide first.**
35
+
36
+ It contains critical information about our Pull Request structure (Conventional Commits), PR preview environments (`pkg.pr.new`), and automated release management.
37
+
38
+ ## Maintainers
39
+
40
+ | Maintainer | GitHub | Social | Active |
41
+ | ------------ | ----------------------------------------------- | ------ | ------ |
42
+ | Chris Clarke | [chrismclarke](https://github.com/chrismclarke) | | ✅ |
43
+
44
+ ## LATEST FOR CAPACITOR 7
45
+
46
+ ## Browser Support
47
+
48
+ The plugin follows the guidelines from the `Capacitor Team`,
49
+
50
+ - [Capacitor Browser Support](https://capacitorjs.com/docs/v3/web#browser-support)
51
+
52
+ meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/).
53
+
54
+ ## Installation
55
+
56
+ ### Capacitor 7 (this package)
57
+
58
+ ```bash
59
+ npm install @picsa/capacitor-video-player
60
+ npx cap sync
61
+ ```
62
+
63
+ Or as a drop-in replacement from the original project:
64
+
65
+ ```json
66
+ "capacitor-video-player": "npm:@picsa/capacitor-video-player@^7"
67
+ ```
68
+
69
+ ### Capacitor 6 and below
70
+
71
+ Use the original [capacitor-video-player](https://github.com/harmonwood/capacitor-video-player) package:
72
+
73
+ ```bash
74
+ npm install --save capacitor-video-player
75
+ npx cap sync
76
+ ```
77
+
78
+ > **Note**: If migrating from the original package, simply update your `package.json`:
79
+ >
80
+ > ```json
81
+ > // Before (Capacitor 6):
82
+ > "capacitor-video-player": "6.0.2"
83
+ >
84
+ > // After (Capacitor 7):
85
+ > "capacitor-video-player": "npm:@picsa/capacitor-video-player@^7"
86
+ > ```
87
+
88
+ ### Build
89
+
90
+ Then build YOUR_APPLICATION
91
+
92
+ ```bash
93
+ npm run build
94
+ npx cap copy
95
+ npx cap copy web
96
+ npx cap copy @capacitor-community/electron
97
+ npx cap open android
98
+ npx cap open ios
99
+ npx cap open @capacitor-community/electron
100
+ npx cap serve
101
+ ```
102
+
103
+ ## Configuration
104
+
105
+ No configuration required for this plugin
106
+
107
+ ## Supported methods
108
+
109
+ | Name | Android | iOS | Electron | Web |
110
+ | :--------------------------------- | :------ | :-- | :------- | :-- |
111
+ | initPlayer (mode fullscreen) | ✅ | ✅ | ✅ | ✅ |
112
+ | initPlayer (mode embedded) | ❌ | ❌ | ✅ | ✅ |
113
+ | initPlayer (url assets) | ✅ | ✅ | ✅ | ✅ |
114
+ | initPlayer (url internal) | ✅ | ✅ | ❌ | ❌ |
115
+ | initPlayer (url application/files) | ✅ | ✅ | ❌ | ❌ |
116
+ | initPlayer (subtitles) | ✅ | ✅ | ❌ | ❌ |
117
+ | initPlayer (headers) | ✅ | ✅ | ❌ | ❌ |
118
+ | initPlayer (title) | ✅ | ✅ | ❌ | ❌ |
119
+ | initPlayer (smallTitle) | ✅ | ✅ | ❌ | ❌ |
120
+ | initPlayer (accentColor) | ✅ | ❌ | ❌ | ❌ |
121
+ | initPlayer (chromecast) | ✅ | ❌ | ❌ | ❌ |
122
+ | initPlayer (artwork) | ✅ | ✅ | ❌ | ❌ |
123
+ | isPlaying | ✅ | ✅ | ✅ | ✅ |
124
+ | play | ✅ | ✅ | ✅ | ✅ |
125
+ | pause | ✅ | ✅ | ✅ | ✅ |
126
+ | getCurrentTime | ✅ | ✅ | ✅ | ✅ |
127
+ | setCurrentTime | ✅ | ✅ | ✅ | ✅ |
128
+ | getDuration | ✅ | ✅ | ✅ | ✅ |
129
+ | getMuted | ✅ | ✅ | ✅ | ✅ |
130
+ | setMuted | ✅ | ✅ | ✅ | ✅ |
131
+ | getVolume | ✅ | ✅ | ✅ | ✅ |
132
+ | setVolume | ✅ | ✅ | ✅ | ✅ |
133
+ | stopAllPlayers | ✅ | ✅ | ✅ | ✅ |
134
+ | getRate | ✅ | ✅ | ✅ | ✅ |
135
+ | setRate | ✅ | ✅ | ✅ | ✅ |
136
+ | showController | ✅ | ❌ | ❌ | ❌ |
137
+ | isControllerIsFullyVisible | ✅ | ❌ | ❌ | ❌ |
138
+ | exitPlayer | ✅ | ❌ | ❌ | ❌ |
139
+
140
+ ## Supported listeners
141
+
142
+ | Name | Android | iOS | Electron | Web |
143
+ | :---------------------- | :------ | :-- | :------- | :-- |
144
+ | jeepCapVideoPlayerReady | ✅ | ✅ | ✅ | ✅ |
145
+ | jeepCapVideoPlayerPlay | ✅ | ✅ | ✅ | ✅ |
146
+ | jeepCapVideoPlayerPause | ✅ | ✅ | ✅ | ✅ |
147
+ | jeepCapVideoPlayerEnded | ✅ | ✅ | ✅ | ✅ |
148
+ | jeepCapVideoPlayerExit | ✅ | ✅ | ✅ | ✅ |
149
+
150
+ ## Dependencies
151
+
152
+ - [hls.js](https://github.com/video-dev/hls.js) - HLS video playback on Web and Electron platforms
153
+ - [ExoPlayer (Media3)](https://developer.android.com/media3) - HLS, DASH, and SmoothStreaming on Android platform
154
+
155
+ ---
156
+
157
+ # Legacy Docs
158
+
159
+ ## Documentation
160
+
161
+ [API_Documentation](https://www.capacitorvideoplayer.com/API/)
162
+
163
+ ## Tutorials Blog
164
+
165
+ - [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
166
+
167
+ ## Applications demonstrating the use of the plugin
168
+
169
+ ### Capacitor 5 Apps
170
+
171
+ - [ionic7-angular-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/ionic7-angular-videoplayer-app)
172
+
173
+ - [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
174
+
175
+ ### Application Starter (Not yet updated to 5.0.0)
176
+
177
+ - [angular-video-player-app-starter](https://github.com/jepiqueau/angular-videoplayer-app-starter)
178
+
179
+ - [react-video-player-app-starter](https://github.com/jepiqueau/react-video-player-app-starter)
180
+
181
+ - [vite-react-videoplayer-app](https://github.com/jepiqueau/vite-react-videoplayer-app)
182
+
183
+ - [vue-videoplayer-app](https://github.com/jepiqueau/vue-videoplayer-app-starter)
184
+
185
+ ## Usage 2.4.7
186
+
187
+ - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
188
+
189
+ - [see usage 2.4.7](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_2.4.7.md)
190
+
191
+ ## Usage > 3.0.0
192
+
193
+ - [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
194
+
195
+ - [see usage > 3.0.0](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_3.0.0.md)
196
+
197
+ ## Contributors ✨
198
+
199
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
200
+
201
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
202
+ <!-- prettier-ignore-start -->
203
+ <!-- markdownlint-disable -->
204
+ <table>
205
+ <tr>
206
+ <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>
207
+ <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>
208
+ <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>
209
+ <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>
210
+ <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>
211
+ <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>
212
+ <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>
213
+ <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>
214
+
215
+ </tr>
216
+ <tr>
217
+ <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>
218
+ <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>
219
+ </tr>
220
+ </table>
221
+
222
+ <!-- markdownlint-enable -->
223
+ <!-- prettier-ignore-end -->
224
+
225
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
226
+
227
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!