I'm trying to stream from obs to nginx server. I'm using videojs as a player. In OBS Settings I'm using custom Streaming server and the url is rtmp://localhost/live. this is the configuration file for nginx:
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
and this is the html part:
<video id="player" class="video-js vjs-default-skin" height="360" width="640" controls autoplay preload="none">
<source src="rtmp://localhost/live" type="rtmp/mp4" />
</video>