fixes for capture-frame@4
This commit is contained in:
parent
844e34e596
commit
a7766e8d3f
1 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ function torrentPosterFromVideo (torrent, cb) {
|
|||
function onSeeked () {
|
||||
video.removeEventListener('seeked', onSeeked)
|
||||
|
||||
const buf = captureFrame(video)
|
||||
const frame = captureFrame(video)
|
||||
const buf = frame && frame.image
|
||||
|
||||
// unload video element
|
||||
video.pause()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue