RTMP - Set a username and password for publisher

Max

Administrator
Staff member
Good day.
You can pass credentials as RTMP connection parameters
Code:
rtmp://host:1935/live?user=val1&passwd=val2/streamName
then use /connect REST hook to authenticate a user.
RTMP connection parameters can also be passed as stream parameters if necessary
Code:
rtmp://host:1935/live/streamName?user=val1&passwd=val2
To do this, set the following parameter in flashphoner.properties file
Code:
rtmp_use_stream_params_as_connection=true
 

Max

Administrator
Staff member
You can do that from CLI

1. Connect to ssh localhost
Code:
ssh -p 2001 admin@localhost
2. List apps.

show apps

3. Update FlashStreamingApp if you publish from OBS or live encoder
Code:
update app -l "http://10.10.10.10/app" FlashStreamingApp
or Update defaultApp if you publish via Wevsocket/WebRTC
Code:
update app -l "http://10.10.10.10/app" defaultApp
The address 10.10.10.10 is your back-end server.

CLI

REST Hooks

Example of authentication
 

tanjiro

New Member
Hi Max,

My mistake. I accidentally deleted the defaultApp .. I reinstalled and now its working fine.

Thanks.
 
Top