Hi, i’m working in a node.js module to start and stop streaming from my own schedule.
Using the default Body params to start the stream not working to appending to the same file when restarting the same stream channel.
I’ll paste the default Body params here, because i’ve tried to change all the fields, file patters and the file continue to put the version number at the end, mystream_0.mp4, 1.mp4 so on.
curl -X POST --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/streamrecorders/myStream -d ’
{
“restURI”:“http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/streamrecorders/myStream”,
“recorderName”:“myStream”,
“instanceName”:“definst”,
“recorderState”:“Waiting for stream”,
“defaultRecorder”:true,
“segmentationType”:“None”,
“outputPath”:"[output-path]",
“baseFile”:“myrecord2.mp4”,
“fileFormat”:“MP4”,
“fileVersionDelegateName”:“com.wowza.wms.livestreamrecord.manager.StreamRecorderFileVersionDelegate”,
“fileTemplate”:"${BaseFileName}${RecordingStartTime}${SegmentNumber}",
“segmentDuration”:900000,
“segmentSize”:10485760,
“segmentSchedule”:“0 * * * * *”,
“recordData”:true,
“startOnKeyFrame”:true,
“splitOnTcDiscontinuity”:false,
“option”:“Version existing file”,
“moveFirstVideoFrameToZero”:true,
“currentSize”:0,
“currentDuration”:0,
“recordingStartTime”:""
}’
Also how can i just start the streaming and not create a new one, like i do with Stop Stream, just passing the stream name and the action?.
Thanks in advance.
Marcelo.