illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.91k stars 1.51k forks source link

How to handle Auth for publish and play #482

Open Lt-Sites opened 2 years ago

Lt-Sites commented 2 years ago

How to use auth for play and publish streams? How to send the user pass params using Larix Software or by URL? How to use the URL to send auth data?

Example:

        auth: {
            play: true,
            publish: true,
            api: true,
            api_user: "user",
            api_pass: "pass",
        },

rtmp://user:pass@localhost:port:/live/stream