Publish RTMPS
Enable RTMPS
info
In v2.14 and above, now RTMPS can be enabled/disabled via server settings instead of enabling/disabling it from the XML files.
This allows for easy and hassle-free configuration. It also restores even after a server upgrade, whereas previously it did not restore in XML files.
Follow below steps to enable/disable the RTMPS:
-
Go to the conf folder under antmedia folder
cd /usr/local/antmedia/conf/
-
Edit the red5.properties file
sudo nano red5.properties
-
Enable/Disable the RTMPS
rtmps.enabled=true
By default it is enabled now and works on TCP port 8443.
-
After changing the settings, restart the server
sudo service antmedia restart
Publish RTMPS Stream
To publish the RTMPS stream, follow this OBS tutorial for reference and instead of using the simple RTMP endpoint, use the below RTMPS endpoint.
rtmps://domain-name:8443/live/streamId
Check out the playback guide to play your RTMPS stream with WebRTC, HLS etc.