Stream Recording options

cheinan

Member
Hello
I Am inserted in using Flashphoner as a replacement for adobe media server.
Can i start or stop the Stream recording not only on session.createStream and STREAM_STATUS.UNPUBLISHED or STREAM_STATUS.FAILED
And do it in a middle of connection?

Can i change and define different directory's where recordings will be saved?
thanks
cheinan
 

Max

Administrator
Staff member
Hello
The recording works during the stream publishing. Once the publishing is stopped, the recording is stopped too.
You can't pause recording in the publishing stream.

Can i change and define different directory's where recordings will be saved?
Yes, you can edit the record hook file located in /usr/local/FlashphonerWebCallServer/bin

Code:
#cat on_record_hook.sh

STREAM_NAME=$1
FILE_NAME=$2
echo $STREAM_NAME
echo $FILE_NAME
As you can see you have the file name and you can move your recorded file to any directory
For example, to /tmp dir
Code:
mv /usr/local/FlashphonerWebCallServer/records/$FILE_NAME /tmp
 
Top