27 Answers
New AnswerWhat 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涓光摠銊┶╁痪 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
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.
<video src="https://www.dropbox.com/s/jnz2w6c88d7rgrg/time%20lapse%20video%20of%20night%20sky.mp4?raw=1" controls/>
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
涓光摠銊┶╁痪 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
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message