@picsa/capacitor-video-player 7.2.2 → 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.
|
@@ -1586,10 +1586,6 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
1588
|
private void adjustAspectRatio() {
|
|
1589
|
-
|
|
1590
|
-
styledPlayerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FILL);
|
|
1591
|
-
} else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
|
|
1592
|
-
styledPlayerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FIT);
|
|
1593
|
-
}
|
|
1589
|
+
styledPlayerView.setResizeMode(resizeStatus);
|
|
1594
1590
|
}
|
|
1595
1591
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picsa/capacitor-video-player",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
4
4
|
"description": "custom Native Capacitor plugin to play a video",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"ios/Plugin/",
|
|
15
15
|
"CapacitorVideoPlayer.podspec"
|
|
16
16
|
],
|
|
17
|
-
"author": "
|
|
17
|
+
"author": "E-PICSA",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=22.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
package/readme.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
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
2
|
<h3 align="center">Video Player</h3>
|
|
3
|
-
<p align="center"><strong><code
|
|
3
|
+
<p align="center"><strong><code>@picsa/capacitor-video-player</code></strong></p>
|
|
4
4
|
<br>
|
|
5
|
-
<p align="center" style="font-size:50px;color:
|
|
5
|
+
<p align="center" style="font-size:50px;color:green"><strong>CAPACITOR 7</strong></p><br>
|
|
6
6
|
<br>
|
|
7
|
-
<p align="center" style="font-size:
|
|
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>
|
|
8
12
|
<br>
|
|
9
13
|
<p align="center">
|
|
10
14
|
Capacitor Video Player Plugin is a custom Native Capacitor plugin to play a video
|
|
@@ -15,12 +19,11 @@
|
|
|
15
19
|
</p>
|
|
16
20
|
|
|
17
21
|
<p align="center">
|
|
18
|
-
<img src="https://img.shields.io/maintenance/yes/
|
|
19
|
-
<a href="https://
|
|
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>
|
|
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>
|
|
21
24
|
<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>
|
|
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>
|
|
24
27
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
25
28
|
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-10-orange?style=flat-square" /></a>
|
|
26
29
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
@@ -30,16 +33,15 @@
|
|
|
30
33
|
|
|
31
34
|
If you wish to contribute to the plugin, **please ensure you read the [CONTRIBUTING.md](CONTRIBUTING.md) guide first.**
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
It contains critical information about our Pull Request structure (Conventional Commits), PR preview environments (`pkg.pr.new`), and automated release management.
|
|
34
37
|
|
|
35
38
|
## Maintainers
|
|
36
39
|
|
|
37
|
-
| Maintainer
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
| Quéau Jean Pierre | [jepiqueau](https://github.com/jepiqueau) | | ❌ |
|
|
40
|
+
| Maintainer | GitHub | Social | Active |
|
|
41
|
+
| ------------ | ----------------------------------------------- | ------ | ------ |
|
|
42
|
+
| Chris Clarke | [chrismclarke](https://github.com/chrismclarke) | | ✅ |
|
|
41
43
|
|
|
42
|
-
## LATEST FOR CAPACITOR
|
|
44
|
+
## LATEST FOR CAPACITOR 7
|
|
43
45
|
|
|
44
46
|
## Browser Support
|
|
45
47
|
|
|
@@ -51,25 +53,52 @@ meaning that it will not work in IE11 without additional JavaScript transformati
|
|
|
51
53
|
|
|
52
54
|
## Installation
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
+
> ```
|
|
59
87
|
|
|
60
88
|
### Build
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
+
```
|
|
73
102
|
|
|
74
103
|
## Configuration
|
|
75
104
|
|
|
@@ -118,23 +147,30 @@ No configuration required for this plugin
|
|
|
118
147
|
| jeepCapVideoPlayerEnded | ✅ | ✅ | ✅ | ✅ |
|
|
119
148
|
| jeepCapVideoPlayerExit | ✅ | ✅ | ✅ | ✅ |
|
|
120
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
|
+
|
|
121
159
|
## Documentation
|
|
122
160
|
|
|
123
161
|
[API_Documentation](https://www.capacitorvideoplayer.com/API/)
|
|
124
162
|
|
|
125
163
|
## Tutorials Blog
|
|
126
164
|
|
|
127
|
-
|
|
128
|
-
|
|
165
|
+
- [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
|
|
129
166
|
|
|
130
167
|
## Applications demonstrating the use of the plugin
|
|
131
168
|
|
|
132
169
|
### Capacitor 5 Apps
|
|
133
170
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
|
|
171
|
+
- [ionic7-angular-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/ionic7-angular-videoplayer-app)
|
|
137
172
|
|
|
173
|
+
- [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
|
|
138
174
|
|
|
139
175
|
### Application Starter (Not yet updated to 5.0.0)
|
|
140
176
|
|
|
@@ -143,7 +179,7 @@ No configuration required for this plugin
|
|
|
143
179
|
- [react-video-player-app-starter](https://github.com/jepiqueau/react-video-player-app-starter)
|
|
144
180
|
|
|
145
181
|
- [vite-react-videoplayer-app](https://github.com/jepiqueau/vite-react-videoplayer-app)
|
|
146
|
-
|
|
182
|
+
|
|
147
183
|
- [vue-videoplayer-app](https://github.com/jepiqueau/vue-videoplayer-app-starter)
|
|
148
184
|
|
|
149
185
|
## Usage 2.4.7
|
|
@@ -152,17 +188,12 @@ No configuration required for this plugin
|
|
|
152
188
|
|
|
153
189
|
- [see usage 2.4.7](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_2.4.7.md)
|
|
154
190
|
|
|
155
|
-
## Usage > 3.0.0
|
|
191
|
+
## Usage > 3.0.0
|
|
156
192
|
|
|
157
193
|
- [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
|
|
158
194
|
|
|
159
195
|
- [see usage > 3.0.0](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_3.0.0.md)
|
|
160
196
|
|
|
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
197
|
## Contributors ✨
|
|
167
198
|
|
|
168
199
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|