fent / fent/node-ytdl-core

CORS error on video download url

Open
#1,157 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm trying to get colors of pixels in video from youtube using the html canvas element.

To get this video data I need to use `ctx.getImageData` but it seems that the video is tainted with a CORS policy which means I can't get its data...

![Console Error](https://user-images.githubusercontent.com/111461260/201531169-b208912f-ccee-4d1f-8fef-4a284da40f83.png)

Is this intended or is there any solution to fix this problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.