Open sinanaksu opened 7 years ago
I've run into issues like this - it usually depends on the web player or the web browser if they require CORS or not (in short: this problem is not caused by the nginx-rtmp-module). What you have to do is do additional configuring of NGINX itself in the HTTP blocks related to the .m3u8 playlists or the streams. Look into the following resource about CORS: https://enable-cors.org/server_nginx.html
There's also a Mozilla web resource on this topic with detailed info on this topic: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
Hi, The success is somehow made up of hls files (.m3u8 and .ts). I can play the broadcast with the vlc player on the desktop. But it does not work in the web browser.
I'm trying https://video-dev.github.io/hls.js/demo/ here. But he's giving a cros fault. Error and nginx.conf file as follows. I also share my ffmpeg command.
Thank you.
Web player error.
ffmpeg command : nohup ffmpeg -re -i 123456.mp4 - -sn -vcodec copy -acodec copy -f flv rtmp://127.0.0.1:1935/mobile/123456 ) &> /dev/null &
Nginx.conf content