...
It is necessary to take into account the length of the absolute file name (including folder path) that will be formed when copying record file. If the absolute name of the target file exceeds 255 characters limit, copy command will fail with error, so the handling script will not work as expected.
Adjusting record audio sample rate
By default, audio track is recorded with sample rate 44.1 kHz. This value can be changed using the following parameter if necessary
Code Block | ||||
---|---|---|---|---|
| ||||
record_audio_codec_sample_rate=48000 |
In this case, record audio sample rate will be set to 48 kHz.
Client side
If stream recording is enabled on the server, whether the stream is recorded or not is determined by the value of record parameter passed into the createStream function in the script of the publisher client:
...
Parameter name | Description | Example |
---|---|---|
mediaSessionIdИдентификатор сессии | Media session identificator | 5a072377-73c1-4caf-abd3 |
Known issues
...
2. When stream published in chat room is recorded, file rotation will be automatically disabled, otherwise record files will not be merged.
3. In Amazon WCS instance, record files hook script requires sudo to execute any file operation.
Symptoms: record hook script does not perform any operation on record files
Solution: in Amazon WCS instance use sudo to make any file operation or call external script from record hook script, for example
Code Block | ||||
---|---|---|---|---|
| ||||
sudo cp $SRC_FILE $DST_FILE |