Skip to content

Commit 254dcc1

Browse files
authored
Merge pull request #654 from ant-media/recording-file-name
Update mp4-and-webm-recording.md
2 parents e9d25f8 + 91c579b commit 254dcc1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/guides/recording-live-streams/mp4-and-webm-recording.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ Once you call the above API, the server will start recording the stream. To stop
5959
curl -X 'PUT' 'https://domain-or-IP:5443/AppName/rest/v2/broadcasts/streamId/recording/false?recordType=mp4' -H 'accept: application/json'
6060
```
6161

62+
:::info
63+
64+
For MP4 recording, you can also pass the **?fileName=** parameter in the API call, so that instead of following the default name format, the file will be saved with custom file name.
65+
66+
```bash
67+
curl -X 'PUT' 'https://domain-or-IP:5443/AppName/rest/v2/broadcasts/streamId/recording/true?fileName=test123' -H 'accept: application/json'
68+
```
69+
70+
So even the streamId is test, the file will be saved with test123.mp4
71+
:::
72+
6273
## WebM Recording
6374

6475
To record in WebM format, you’ll need to enable the VP8 codec in your Ant Media Server application. Since WebRTC supports VP8, WebM recording is naturally supported as well.

0 commit comments

Comments
 (0)