-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem when accessing video from chrome or other browser: #50
Comments
Hello, CORS is missing. It is not part of the codebae but could be added easily. Using this code. Or you could just make sure that the oriign where you play the video is the same as the go-transcode. By using reverse proxy. E.g:
That means when you play your video on |
Hello, thanks, for your answer and time, i'm gonna compile now the server with the new code you sent me and see if it works, because i don't have a reverse proxy setup at the moment... |
Ok, its working now (at least it seems) had to :
I still am not able to play anything in chrome , edge , firefox and firedragon, BUT at least its not complaining about security concerns (all dev tools give ok 200 to all files) and in media player classic and vlc plays ok. I suppose that it fails for the codec. For the moment Im trying different js players to see if someone works with this hls file format / codec , if you know anyone that works, that would be a plus. THANKS for your time and patience For me this problem is closed as valid. As always, thanks for your time and help. |
I use video.js with http-streaming plugin, works most of the time for me: |
thanks ill try tomorrow
happy new year
and thanks for everything
[image: image.png]
|
Added |
Hello:
I configured the server (i think that ok), when I watch movies from mpc-hc or vlc I can access the file, transcode is good and I can view the file from any machine
when I try to access the file from an html through a web broser I get the following error:
xxxxx.html:1 Access to XMLHttpRequest at 'http://192.168.10.3:44444/vod/xxxx/yyy/360p.m3u8' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is there any way to set cross origin policy on the server ( even if i need to change the source code and recompile) or I'm doing something wrong?
thanks in advance
The text was updated successfully, but these errors were encountered: