@capgo/capacitor-video-thumbnails 8.1.19 → 8.1.22
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/README.md
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
# @capgo/capacitor-video-thumbnails
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Create thumbnail images from local or remote videos in your Capacitor app, for galleries, upload previews and video lists.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_video_thumbnails"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-video-thumbnails" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_video_thumbnails">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_video_thumbnails">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-video-thumbnails/main/assets/github-social-preview.png" alt="@capgo/capacitor-video-thumbnails for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **One call**: `getThumbnail()` returns an image of the video frame.
|
|
21
|
+
- **Pick the frame**: `time` sets the position in milliseconds.
|
|
22
|
+
- **Quality**: set the image `quality`.
|
|
23
|
+
- **Remote videos**: pass HTTP `headers` for protected URLs on iOS and Android.
|
|
24
|
+
- **Platforms**: iOS, Android and Web. iOS uses AVFoundation, Android uses `MediaMetadataRetriever`, web uses a video element and canvas.
|
|
10
25
|
|
|
11
26
|
## Why Capacitor Video Thumbnails?
|
|
12
27
|
|
package/android/src/main/java/app/capgo/capacitor/videothumbnails/CapgoVideoThumbnailsPlugin.java
CHANGED
|
@@ -23,7 +23,7 @@ import java.util.concurrent.Executors;
|
|
|
23
23
|
public class CapgoVideoThumbnailsPlugin extends Plugin {
|
|
24
24
|
|
|
25
25
|
private static final String TAG = "CapgoVideoThumbnails";
|
|
26
|
-
private final String pluginVersion = "8.1.
|
|
26
|
+
private final String pluginVersion = "8.1.22";
|
|
27
27
|
private final ExecutorService executor = Executors.newSingleThreadExecutor();
|
|
28
28
|
|
|
29
29
|
@PluginMethod
|
|
@@ -9,7 +9,7 @@ import UIKit
|
|
|
9
9
|
*/
|
|
10
10
|
@objc(CapgoVideoThumbnailsPlugin)
|
|
11
11
|
public class CapgoVideoThumbnailsPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
12
|
-
private let pluginVersion: String = "8.1.
|
|
12
|
+
private let pluginVersion: String = "8.1.22"
|
|
13
13
|
public let identifier = "CapgoVideoThumbnailsPlugin"
|
|
14
14
|
public let jsName = "CapgoVideoThumbnails"
|
|
15
15
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-video-thumbnails",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.22",
|
|
4
4
|
"description": "Generate video thumbnails from local or remote video files",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"watch": "tsc --watch",
|
|
52
52
|
"prepublishOnly": "bun run build",
|
|
53
53
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
54
|
+
"check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
|
|
54
55
|
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
55
56
|
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
56
57
|
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
|