Advice on creating thumnails for videos

Hello! What would be a correct way to create thumbnails for videos? Is there a Capacitor plugin? Can be an existing Cordova/Phonegap plugin used?