You can use on_record_hook.sh script for any operations on recording files, including permissions changing, for exampleI have downgraded to version 5.2.798 and the recordings are saving to the correct location but its permissions are root user and group and its not accessible by the site user to play the video can you please guide me how we can set the proper permissions for the recorded files.
Code:
STREAM_NAME=$1
FILE_NAME=$2
echo $STREAM_NAME:$FILE_NAME >> /usr/local/FlashphonerWebCallServer/logs/record.log
chown wwwuser $FILE_NAME