Richtlinie
Tutorial zu Video-Vorschaubildern
Mit @capgo/capacitor-video-thumbnails
Capacitor-Video-Vorschaubild-Plugin-Interface zur Generierung von Video-Vorschaubildern.
Installieren
bun add @capgo/capacitor-video-thumbnails
bunx cap sync
Was diese Erweiterung bereitstellt
getThumbnail- Erstelle ein Vorschaubild aus einem Videodatei an einer bestimmten Zeitposition.
Beispiel für die Verwendung
getThumbnail
Erstelle ein Vorschaubild aus einer Videodatei an einer bestimmten Zeitposition.
import { CapgoVideoThumbnails } from '@capgo/capacitor-video-thumbnails';
const result = await CapgoVideoThumbnails.getThumbnail({
sourceUri: 'file:///path/to/video.mp4',
time: 5000,
quality: 0.8
});
console.log('Thumbnail URI:', result.uri);
console.log('Dimensions:', result.width, 'x', result.height);
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-video-thumbnails/
- Dokumentation: /docs/plugins/video-thumbnails/
Weitermachen von Using @capgo/capacitor-video-thumbnails
Wenn Sie diese Erweiterung verwenden Verwenden Sie @capgo/capacitor-video-thumbnails um native Medien- und Schnittstellenverhalten zu planen, mit @capgo/capacitor-video-vorschaubilder für die Implementierungsdetails in @capgo/capacitor-video-vorschaubilder, Einstieg für die Implementierungsdetails in Einstieg, Mit @capgo/capacitor-live-aktivitäten für die native Fähigkeit in Mit @capgo/capacitor-live-aktivitäten, @capgo/capacitor-live-aktivitäten für die Implementierungsdetails in @capgo/capacitor-live-aktivitäten und Mit @capgo/capacitor-video-abspielgerät für die native Fähigkeit in Mit @capgo/capacitor-video-abspielgerät.