Richtlinie
Video-Videobeschreibungstutorial
Mit @capgo/capacitor-video-thumbnails verwenden
Capacitor-Video-Bildschirmfassung-Plugin für die Erstellung von Videobildschirmfassungen.
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 native Medien- und Schnittstellenverhalten planen, verbinden Sie es mit Mit @capgo/capacitor-video-thumbnails Wenn Sie native Medien- und Schnittstellenverhalten planen, verbinden Sie es mit @capgo/capacitor-video-Bildernachweise für die Implementierungsdetails in @capgo/capacitor-video-Bildernachweise, 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-Player für die native Fähigkeit in Mit @capgo/capacitor-Video-Player.