Increase the segmentDuration time dynamically

I am recording a live stream using the url with action “startRecordingSegmentByDuration”.

for eg:

http://xxxxxxx:8086/livestreamrecord?app=live&streamname=4.stream&action=startRecordingSegmentByDuration&output="/var/storage1/camera_4/abc.mp4&format=2&startonkeyframe=true&segmentDuration=60

My question is:

Can I update the value of segmentDuration to a higher one, when recording is happening.

tnx!

Hello

If you are using the HTTP API, you will not be able to do this while the recording is occurring. Since the method available is to “start” a recording, you cannot call it again to update an existing recording. However, try taking a look at the ILiveStreamRecord API (example), you should be able to change the duration on-the-fly there.

Thanks,

Matt