+ 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
19 Respuestas
+ 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
<video src="https://www.dropbox.com/s/jnz2w6c88d7rgrg/time%20lapse%20video%20of%20night%20sky.mp4?raw=1" controls/>
+ 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ší
+ 1
You did my work David Dolejší 🥺
Any way how you solved the problem of crossorigin anonymous ?
+ 1
How to do that David Dolejší
I use github rarely
So I dont have much idea about it
+ 1
See this David Dolejší
Orignal : https://github.com/ayushkumarsingh2422005/Beat-Trive/blob/main/videoplayback.mp4
Told by you : https://raw.githubusercontent.com/ayushkumarsingh2422005/Beat-Trive/main/videoplayback.mp4
Is this right ?
0
I think the server on which your web application is hosted needs to tell the browser via the http response header Access-Control-Cross-Origin that it should allow crossorigin anonymous loading of files from different origins. Since we have no control about this server here on SL I think there is not really anything we can do to solve this problem for projects on SL.
0
I tried it allready JESUS EDUARDO CANUL KOYOC but it throws same error
- 1
سلام
- 1
Hy