Tormy
Member
I try to setup OBS + NGINX in order to be able to stream to any HTML 5 tag <videosrc="">, instead to VLC or JWPlayer
But I'm not able to watch the content.
Can you please help me?
I'm under W7 64 bit OBS 22.0.2
Please her below the settings I use
NGINX
OBS Settings to stream to NGINX (and it works)
here the HTML page I would like to use to watch the streaming
I obtain always lank page
But I'm not able to watch the content.
Can you please help me?
I'm under W7 64 bit OBS 22.0.2
Please her below the settings I use
NGINX
NGINX:
worker_processes 1;
error_log logs/error.log debug;
error_log logs/error.log debug;
error_log logs/error.log notice;
error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
# max value 16384, nginx recycling connections+registry optimization =
# this.value * 20 = max concurrent connections currently tested with one worker
# C1000K should be possible depending there is enough ram/cpu power
multi_accept on;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
application live {
live on;
meta copy;
wait_key on;
wait_video on;
record off;
idle_streams off;
allow publish 127.0.0.1;
deny publish all;
hls on;
hls_path /temp/hls;
}
}
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
include mime.types;
default_type application/octet-stream;
access_log logs/access.log;
error_log logs/error.log;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /;
index index.html;
location hls/ {
root temp;
add_header Cache-Control no-cache;
}
}
}
OBS Settings to stream to NGINX (and it works)
Code:
URL: rtmp://127.0.0.1:1935/live
streamkey: live
here the HTML page I would like to use to watch the streaming
HTML:
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<video src="http://127.0.0.1/hls/live"></video>
</body>
</html>
I obtain always lank page