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.95k stars 1.52k forks source link

RTSP Relay App, Name, and Edge Properties Combination to Get Some RTSP Stream URLs to Work? #285

Open own3mall opened 4 years ago

own3mall commented 4 years ago

Hi All,

I can't seem to get one of my cameras setup in Node-Media-Server to relay and pull from my Wyze camera. The RTSP URL is the following:

rtsp://mylogin:mypassword@domain.com:4223/live

No matter what I try, I cannot get Node-Media-Server to relay and pull from this stream, as it appears to append the app and name properties in a task entry to the edge URL which won't work in my situation:

          {
          app: 'live',
          mode: 'pull',
          edge: 'rtsp://mylogin:mypassword@domain.com:4223',
          name: '',
      }

How do I get this RTSP URL setup in a relay task object? Wouldn't it be better if we could pass in the full RTSP URL in the edge parameter? Then, app and name properties could be used to configure the Node-Media-Server relay URL like nodemediaserverurl:8000/app/name -> edge URL

This would make it so much more flexible!

own3mall commented 4 years ago

Fixed in my branch: https://github.com/own3mall/Node-Media-Server Fixed in PR: https://github.com/illuspas/Node-Media-Server/pull/287