27 AnswersNew Answer
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 AnswersNew Answer
丹ⓨㄩک廾 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
丹ⓨㄩک廾 here, I grey the video as example but you can change what you need https://code.sololearn.com/WU55aNKj2afd/?ref=app
丹ⓨㄩک廾 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
丹ⓨㄩک廾 I show you solution within 5 minutes
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.
Hape github should allow as I know
<video src="https://www.dropbox.com/s/jnz2w6c88d7rgrg/time%20lapse%20video%20of%20night%20sky.mp4?raw=1" controls/>
丹ⓨㄩک廾 I normally use github for bigger files, this is just 2MB
丹ⓨㄩک廾 hosted image on github and put crossOrigin = "Anonymous"
丹ⓨㄩک廾 try it, I think yes
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
Hmm thanks David Dolejší for your help
David Dolejší ok. I haven't tested it yet but that sounds reasonable.
No JESUS EDUARDO CANUL KOYOC it's not still working
Ok let me try from github David Dolejší
丹ⓨㄩک廾 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.
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
The video still animates for me in canvas if i remove crossorigin anynomous but it gives security error
Yes Arnav Kumar [📕Schools📚] but I need to play video with crossorigin anonymous so that I can do Pixal manipulation
Then why is it saying like that ? David Dolejší
Sololearn Inc.535 Mission Street, Suite 1591
Send us a message