The script only works for Red5. It doesn't work with FMS.