Hello all,
I'm trying to implement the setup on my server to run streaming in real time. I want to convey my screen in real time, but I'm not getting.
My distribution is CentOS and I am using the following configuration:
Nginx + nginx-rtmp-module + OBS
My configuration file is like this:
Code:
worker_processes auto;
events {
worker_connections 1024;
}
http {
sendfile off;
tcp_nopush on;
#aio on;
directio 512;
default_type application/octet-stream;
server {
listen 80;
location / {
# Disable cache
add_header 'Cache-Control' 'no-cache';
# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
add_header 'Access-Control-Allow-Headers' 'Range';
# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' 'Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
types {
application/dash+xml mpd;
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
root /mnt/;
}
}
}
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
# Turn on HLS
hls on;
hls_path /tmp/;
hls_fragment 3;
hls_playlist_length 60;
# disable consuming the stream from nginx as rtmp
deny play all;
}
}
}
When I do the transmission OBS using the rtmp I can open VLC and transmit, but when I try to see my URL:
Error Image:
http://i.imgur.com/BJridVc.png
https://app.peer5.com/integration
But of the page error, what can I be doing wrong?
Thanks All!