Here is the code for the event: const NodeMediaServer = require('node-media-server') Ĭonst config = require('./config').rtmp_server Ĭonst getStreamKeyFromStreamPath = (path) => is now published.`) įor (let idlePlayerId of context. But the problem is, it doesn't leave it instead disconnects and then the stream automatically reconnected to it then it disconnects again and the loop goes on. I am querying the database and retrieving the user if the user was found then I want to let the user stream otherwise rejected. By default it will reside in /usr/local/nginx, we need to start it: /usr/local/nginx/sbin/nginx To make sure Nginx is running just type your server IP address in URL and we should get Welcome to nginx page. I am trying to check the authentication on "prePublish" event. make make install After the successful installation, we need to start the Nginx. So the server works fine but I need to implement authentication in it. I am trying to create an RTMP-server with the npm package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |