What is this error ? | Sololearn: Learn to code for FREE!

+23

What is this error ?

What is this error. I have no idea about it. See the following code. I had set the crossorigin to anonymous but it still say 馃く Just see the below code you will get it. https://code.sololearn.com/W0HMOkAz3VIa/?ref=app 鈿狅笍 I dont need suggestions only 馃槀 First give me solution then suggestion Because I had tried everything after searching over internet but nothing worked for me Gone through many of code and I found same problem with every code Like these \/ https://code.sololearn.com/WzCYoQIugPpU/?ref=app https://code.sololearn.com/WcYJtlbqP1uD/?ref=app

5/12/2021 1:49:04 PM

涓光摠銊┶╁痪

27 Answers

New Answer

+7

涓光摠銊┶╁痪 if you get audio or video from github, you have to know the link format - go to directory with the file, copy url, remove "blob" and replace github.com with raw.githubusercontent.com

+9

涓光摠銊┶╁痪 here, I grey the video as example but you can change what you need https://code.sololearn.com/WU55aNKj2afd/?ref=app

+7

涓光摠銊┶╁痪 yes, it seems that video with anonymous origin cant be attached to html on the other side canvas need it to be anonymous Solution is to create 2 video elements with same source separately

+4

涓光摠銊┶╁痪 I show you solution within 5 minutes

+3

My first answer was wrong. Actually the server where the image is stored needs to be configured to allow cross origin use of the file. So that should be possible if you have or find a server which allows for that.

+3

Hape github should allow as I know

+3

<video src="https://www.dropbox.com/s/jnz2w6c88d7rgrg/time%20lapse%20video%20of%20night%20sky.mp4?raw=1" controls/>

+3

涓光摠銊┶╁痪 I normally use github for bigger files, this is just 2MB

+3

涓光摠銊┶╁痪 hosted image on github and put crossOrigin = "Anonymous"

+3

涓光摠銊┶╁痪 try it, I think yes

+2

Oh huge thanks David Dolej拧í It worked for pixal manipulation But it is not allowing me to display that video directly in document I used append child method to append video in document. But same error raised again

+2

Hmm thanks David Dolej拧í for your help

+1

David Dolej拧í ok. I haven't tested it yet but that sounds reasonable.

+1

No JESUS EDUARDO CANUL KOYOC it's not still working

+1

Ok let me try from github David Dolej拧í

+1

涓光摠銊┶╁痪 Have you tried the code on different platforms? For me it had different errors on Android than on Desktop browser. (On Desktop it doesn't even have explicit errors it just doesn't work) I also tried it with a file on a server which allows cross origin resource sharing but it still doesn't work so I don't know if this problem can be solved or if SL somehow prevents us from doing this.

+1

Dont know what is actually going on Hape David Dolej拧í I uploaded it on github but because of large file size it says you can't open it here you need to download it

+1

The video still animates for me in canvas if i remove crossorigin anynomous but it gives security error

+1

Yes Arnav Kumar [馃摃Schools馃摎] but I need to play video with crossorigin anonymous so that I can do Pixal manipulation

+1

Then why is it saying like that ? David Dolej拧í