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.9k stars 1.51k forks source link

Expose publish arguments to the API #516

Closed Flupster closed 2 years ago

Flupster commented 2 years ago

Example usage:

stream to: rtmp://localhost/live/channel?title=My%20Stream%20Title

Then they can go to http://localhost:8000/api/streams/live/channel

and will present them with

{
  "isLive": true,
  "viewers": 1,
  "duration": 0,
  "bitrate": 0,
  "startTime": "1970-01-01T00:00:00.000Z",
  "arguments": {
      "title": "My Stream Title"
  }
}