Node-Media-Server icon indicating copy to clipboard operation
Node-Media-Server copied to clipboard

Dynamic push

Open dat0825 opened this issue 4 years ago • 4 comments

When I config in app.js like this { app: 'live', mode: 'push', edge: 'rtmp://127.0.0.1', appendName: false } And after I call api POST http://localhost:port/api/relay/push with body { app: 'live', name: 'LIlZB0c2ae', url: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov', appendName: false }. It returns 'OK'. But output console shows: [rtmp play] Stream not found... Can anyone help me ? Many thanks !

dat0825 avatar May 28 '20 17:05 dat0825

You should send the request with application/x-www-form-urlencoded.

sandrocsimas avatar Jun 24 '20 04:06 sandrocsimas

@dat0825: Can you please update steps if you got it working?

Raj123456788 avatar Dec 11 '20 21:12 Raj123456788

I have exactly the same issue. Did anyone got it working? BTW, using application/x-www-form-urlencoded did not help

vladuma avatar Apr 13 '21 17:04 vladuma

As I understand, "[rtmp play] Stream not found" is an expected behaviour while there is no publishing. The newly created session is added to idlePlayers context.idlePlayers.add(this.id); and once you start to stream everything should work.

AlexRypun avatar May 27 '21 08:05 AlexRypun