Skip to content

Commit c329c1d

Browse files
authored
Merge pull request #13 from ogliznutsa/master
Fix thumbnail generation for CORS-enabled videos
2 parents cef6a38 + 9f1b32a commit c329c1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class Video {
7373
this.videoElement.preload = 'metadata';
7474
this.videoElement.muted = true;
7575
this.videoElement.volume = 0;
76+
this.videoElement.crossOrigin = 'anonymous';
7677

7778
// 初始化canvas
7879
const canvas: HTMLCanvasElement = document.createElement('canvas') as HTMLCanvasElement;

0 commit comments

Comments
 (0)