Node-Media-Server
Node-Media-Server copied to clipboard
Dynamic push
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 !
You should send the request with application/x-www-form-urlencoded.
@dat0825: Can you please update steps if you got it working?
I have exactly the same issue. Did anyone got it working? BTW, using application/x-www-form-urlencoded did not help
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.