const request = {
uid: '999',
cname: `${channelName}`,
clientRequest: {
token: EventService.getRecordingToken(channelName),//tocken of 999
recordingConfig: {
maxIdleTime: 120,
streamTypes: 2,
channelType: 0,
videoStreamType: 0,
subscribeVideoUids: [idsToUse.uId + ""],
subscribeAudioUids: [idsToUse.uId + ""],
subscribeUidGroup: 0
},
recordingFileConfig: {
avFileType: ["hls"]
},
storageConfig: {
accessKey: process.env.AZURE_ACCESS_KEY,
region: 3,//The region parameter has no effect, whether or not it is set.(Ref:https://docs.agora.io/en/cloud-recording/cloud_recording_api_rest?platform=RESTful)
bucket: `${process.env.AZURE_CONTAINER_NAME}`,
secretKey: process.env.AZURE_SECRET_KEY,
vendor: 5
}
}
};
This is my start recording configurations for individual recording for a livestream for my app. By this I got 2 files one is .audio.m3u8 and 2nd is .video.m3u8 but my requirement is only one file with both audio and video in it. Can anyone help me in this regard?
Please Use Cloud Composite Recording API Transcoding
https://docs.agora.io/en/cloud-recording/cloud_recording_composite_mode?platform=RESTful