mirror of
https://github.com/Qortal/q-tube.git
synced 2025-02-12 02:05:52 +00:00
add missing type
This commit is contained in:
parent
469688b4e0
commit
da2c2b11c9
@ -50,7 +50,7 @@ export const FrameExtractor = ({ videoFile, onFramesExtracted }) => {
|
|||||||
let frameData = [];
|
let frameData = [];
|
||||||
|
|
||||||
for (const time of durations) {
|
for (const time of durations) {
|
||||||
await new Promise((resolve) => {
|
await new Promise<void>((resolve) => {
|
||||||
video.currentTime = time;
|
video.currentTime = time;
|
||||||
const onSeeked = () => {
|
const onSeeked = () => {
|
||||||
context.drawImage(video, 0, 0, canvas.width, canvas.height);
|
context.drawImage(video, 0, 0, canvas.width, canvas.height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user