Skip to content

Commit 1e8a8a8

Browse files
authored
Merge pull request #550 from ant-media/update-rtmps-document
Update rtmps.md
2 parents ee74456 + edce2d0 commit 1e8a8a8

File tree

1 file changed

+45
-18
lines changed
  • docs/guides/publish-live-stream/rtmp

1 file changed

+45
-18
lines changed

docs/guides/publish-live-stream/rtmp/rtmps.md

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,48 @@ keywords: [Ant Media Server Documentation, Ant Media Server Tutorials]
55
sidebar_position: 1
66
---
77

8-
# Publish RTMPS Stream
9-
10-
Please follow the below steps to publish the RTMPS stream to Ant Media Server:
11-
12-
1. Enable SSL on the server. Please check out [here](https://antmedia.io/docs/guides/installing-on-linux/setting-up-ssl/) for SSL installation.
13-
14-
2. Open TCP port 8443 for RTMPS on the firewall where AMS is hosted.
15-
16-
3. Edit `red5-core.xml` file located under the `/usr/local/antmedia/conf` directory and uncomment the RTMPS beans as mentioned in the below links.
17-
18-
[https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L139](https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L139)
19-
[https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L178](https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L178)
20-
21-
4. Save the file and restart the server with `sudo service antmedia restart`
22-
23-
5. Now you can publish the stream to the server with
24-
25-
`rtmps://Domain-Name:8443/LiveApp/streamId`
8+
## Enable RTMPS
9+
10+
:::info
11+
In v2.14 and above, now RTMPS can be enabled/disabled via server settings instead of enabling/disabling it from the XML files.
12+
13+
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.
14+
:::
15+
16+
Follow below steps to enable/disable the RTMPS:
17+
18+
- Go to the conf folder under antmedia folder
19+
20+
```bash
21+
cd /usr/local/antmedia/conf/
22+
```
23+
24+
- Edit the red5.properties file
25+
26+
```bash
27+
sudo nano red5.properties
28+
```
29+
30+
- Enable/Disable the RTMPS
31+
32+
```json
33+
rtmps.enabled=true
34+
```
35+
36+
**By default it is enabled now and works on TCP port 8443.**
37+
38+
- After changing the settings, restart the server
39+
40+
```bash
41+
sudo service antmedia restart
42+
```
43+
44+
## Publish RTMPS Stream
45+
46+
To publish the RTMPS stream, follow this [OBS tutorial](https://antmedia.io/docs/guides/publish-live-stream/rtmp/publish-with-obs/) for reference and instead of using the simple RTMP endpoint, use the below RTMPS endpoint.
47+
48+
```json
49+
rtmps://domain-name:8443/live/streamId
50+
```
51+
52+
Check out the [playback guide](https://antmedia.io/docs/category/playing-live-streams/) to play your RTMPS stream with WebRTC, HLS etc.

0 commit comments

Comments
 (0)