-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add exportImage #417
Comments
@kylemadkins you can take a snapshot of the video element at any time, e.g. // create new canvas
var canvas = document.createElement('canvas');
canvas.width = 320;
canvas.height = 240;
document.getElementsByTagName('body')[0].appendChild(canvas);
// draw video frame
var context = canvas.getContext('2d');
context.drawImage(player.record().mediaElement, 0, 0, canvas.width, canvas.height);
// download image
canvas.toBlob(function(blob){
console.log(blob);
// send to server here..
},'image/png'); videojs-wavesurfer (used for audio-only in videojs-record) has an |
Thank you so much! I didn't know that |
@kylemadkins add an |
Is there a way to programmatically get a frame of the recorded video data to send to a server & use as a thumbnail? I apologize if this question has been answered elsewhere. It looks like
videojs
orvideojs-record
does this for you to set the thumbnail of the video in the browser once you've finished recording. But I couldn't tell how from looking at the sourceThe text was updated successfully, but these errors were encountered: