// The loadVideo method helps you embed a video // and gives you a callback that lets you know // if thumbnailing is possible in this browser var opts = { sources: [ { src: "lego.mp4" , type: "video/mp4" } ] , attributes: { // `resize:true` resizes video to fill parent element // `resize:{maxWidth: 400}` stops at 400px width resize: true , center: true , id: 'some-unique-id' } } , elem = document.getElementById('my-vid'); jsthumb.loadVideo(elem , opts , function (err, element, player, supported) { // do something? } );Done here? Go back to the tests or fork me.