@picsa/capacitor-video-player 7.2.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
end
|
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
@@ -11,21 +11,21 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
apply plugin: 'com.android.library'
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
|
-
namespace "com.jeep.plugin.capacitor.capacitorvideoplayer"
|
|
22
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
21
|
+
namespace = "com.jeep.plugin.capacitor.capacitorvideoplayer"
|
|
22
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
23
23
|
defaultConfig {
|
|
24
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
26
|
-
versionCode 1
|
|
27
|
-
versionName "1.0"
|
|
28
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
24
|
+
minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
25
|
+
targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
26
|
+
versionCode = 1
|
|
27
|
+
versionName = "1.0"
|
|
28
|
+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
29
29
|
}
|
|
30
30
|
buildTypes {
|
|
31
31
|
release {
|
|
@@ -34,7 +34,7 @@ android {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
lintOptions {
|
|
37
|
-
abortOnError false
|
|
37
|
+
abortOnError = false
|
|
38
38
|
}
|
|
39
39
|
compileOptions {
|
|
40
40
|
sourceCompatibility JavaVersion.VERSION_21
|
|
@@ -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": "
|
|
3
|
+
"version": "8.0.0",
|
|
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",
|
|
@@ -50,27 +50,27 @@
|
|
|
50
50
|
"prepare": "npm run build"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@capacitor/android": "^
|
|
54
|
-
"@capacitor/core": "^
|
|
55
|
-
"@capacitor/docgen": "^0.3.
|
|
56
|
-
"@capacitor/ios": "^
|
|
53
|
+
"@capacitor/android": "^8.0.0",
|
|
54
|
+
"@capacitor/core": "^8.0.0",
|
|
55
|
+
"@capacitor/docgen": "^0.3.1",
|
|
56
|
+
"@capacitor/ios": "^8.0.0",
|
|
57
57
|
"@ionic/eslint-config": "^0.4.0",
|
|
58
58
|
"@ionic/prettier-config": "^4.0.0",
|
|
59
59
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
60
60
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
61
61
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
62
|
-
"@types/node": "^
|
|
63
|
-
"eslint": "^8.57.
|
|
62
|
+
"@types/node": "^24.10.1",
|
|
63
|
+
"eslint": "^8.57.1",
|
|
64
64
|
"hls.js": "^1.5.18",
|
|
65
|
-
"prettier": "^3.
|
|
66
|
-
"prettier-plugin-java": "^2.
|
|
67
|
-
"rimraf": "^6.0
|
|
68
|
-
"rollup": "^4.
|
|
65
|
+
"prettier": "^3.6.2",
|
|
66
|
+
"prettier-plugin-java": "^2.7.7",
|
|
67
|
+
"rimraf": "^6.1.0",
|
|
68
|
+
"rollup": "^4.53.2",
|
|
69
69
|
"swiftlint": "^2.0.0",
|
|
70
|
-
"typescript": "
|
|
70
|
+
"typescript": "^5.9.3"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@capacitor/core": ">=
|
|
73
|
+
"@capacitor/core": ">=8.0.0",
|
|
74
74
|
"hls.js": "^1.4.0"
|
|
75
75
|
},
|
|
76
76
|
"prettier": "@ionic/prettier-config",
|
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 8</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 8 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,46 +33,61 @@
|
|
|
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) | | ❌ |
|
|
41
|
-
|
|
42
|
-
## LATEST FOR CAPACITOR 6 (main)
|
|
40
|
+
| Maintainer | GitHub | Social | Active |
|
|
41
|
+
| ------------ | ----------------------------------------------- | ------ | ------ |
|
|
42
|
+
| Chris Clarke | [chrismclarke](https://github.com/chrismclarke) | | ✅ |
|
|
43
43
|
|
|
44
|
-
## Browser Support
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
## Compatibility
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
| Plugin Version | Capacitor Version | Status |
|
|
48
|
+
| -------------- | ----------------- | -------------- |
|
|
49
|
+
| 8.x.x | >=8.x.x | Active support |
|
|
50
|
+
| 7.x.x | 7.x.x | Supported |
|
|
51
|
+
| N/A | 6.x.x and below | Use legacy plugin |
|
|
49
52
|
|
|
50
|
-
meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/).
|
|
51
53
|
|
|
52
54
|
## Installation
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
### Capacitor 8
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm install @picsa/capacitor-video-player
|
|
60
|
+
npx cap sync
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
> **Note**: If migrating from the original package, simply update your `package.json`:
|
|
64
|
+
>
|
|
65
|
+
> ```json
|
|
66
|
+
> // Before (legacy plugin):
|
|
67
|
+
> "capacitor-video-player": "6.0.2"
|
|
68
|
+
>
|
|
69
|
+
> // After (this plugin):
|
|
70
|
+
> "capacitor-video-player": "npm:@picsa/capacitor-video-player"
|
|
71
|
+
> ```
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Capacitor 7
|
|
75
|
+
Use previous release aligned with capacitor version, e.g.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install @picsa/capacitor-video-player@^7
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Capacitor 6 and below (legacy plugin)
|
|
82
|
+
|
|
83
|
+
Use the original [capacitor-video-player](https://github.com/harmonwood/capacitor-video-player) package:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install --save capacitor-video-player
|
|
87
|
+
npx cap sync
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
|
|
73
91
|
|
|
74
92
|
## Configuration
|
|
75
93
|
|
|
@@ -118,23 +136,30 @@ No configuration required for this plugin
|
|
|
118
136
|
| jeepCapVideoPlayerEnded | ✅ | ✅ | ✅ | ✅ |
|
|
119
137
|
| jeepCapVideoPlayerExit | ✅ | ✅ | ✅ | ✅ |
|
|
120
138
|
|
|
139
|
+
## Dependencies
|
|
140
|
+
|
|
141
|
+
- [hls.js](https://github.com/video-dev/hls.js) - HLS video playback on Web and Electron platforms
|
|
142
|
+
- [ExoPlayer (Media3)](https://developer.android.com/media3) - HLS, DASH, and SmoothStreaming on Android platform
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# Legacy Docs
|
|
147
|
+
|
|
121
148
|
## Documentation
|
|
122
149
|
|
|
123
150
|
[API_Documentation](https://www.capacitorvideoplayer.com/API/)
|
|
124
151
|
|
|
125
152
|
## Tutorials Blog
|
|
126
153
|
|
|
127
|
-
|
|
128
|
-
|
|
154
|
+
- [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
|
|
129
155
|
|
|
130
156
|
## Applications demonstrating the use of the plugin
|
|
131
157
|
|
|
132
158
|
### Capacitor 5 Apps
|
|
133
159
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
|
|
160
|
+
- [ionic7-angular-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/ionic7-angular-videoplayer-app)
|
|
137
161
|
|
|
162
|
+
- [vant-nuxt-videoplayer-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/Videoplayer/vant-nuxt-videoplayer-app)
|
|
138
163
|
|
|
139
164
|
### Application Starter (Not yet updated to 5.0.0)
|
|
140
165
|
|
|
@@ -143,7 +168,7 @@ No configuration required for this plugin
|
|
|
143
168
|
- [react-video-player-app-starter](https://github.com/jepiqueau/react-video-player-app-starter)
|
|
144
169
|
|
|
145
170
|
- [vite-react-videoplayer-app](https://github.com/jepiqueau/vite-react-videoplayer-app)
|
|
146
|
-
|
|
171
|
+
|
|
147
172
|
- [vue-videoplayer-app](https://github.com/jepiqueau/vue-videoplayer-app-starter)
|
|
148
173
|
|
|
149
174
|
## Usage 2.4.7
|
|
@@ -152,17 +177,12 @@ No configuration required for this plugin
|
|
|
152
177
|
|
|
153
178
|
- [see usage 2.4.7](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_2.4.7.md)
|
|
154
179
|
|
|
155
|
-
## Usage > 3.0.0
|
|
180
|
+
## Usage > 3.0.0
|
|
156
181
|
|
|
157
182
|
- [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
|
|
158
183
|
|
|
159
184
|
- [see usage > 3.0.0](https://github.com/jepiqueau/capacitor-video-player/blob/master/docs/Usage_3.0.0.md)
|
|
160
185
|
|
|
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
186
|
## Contributors ✨
|
|
167
187
|
|
|
168
188
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|