Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
Previous page Next page
The PLAYER object corresponds to the Audio Player system object.
Operator format to characterize actions with audio player is following:
DoReact("PLAYER","_id_","_command_" [,"_parameters_"]);
List of commands and parameters for the PLAYER object is presented in the table.
Command – command description | Parameters | Description |
"PLAY_WAV" – plays audio file. | file<> | Full path to the audio file in .wav format (indicating the name of the file being played. For example: C:\Program Files (x86)\Intellect\Wav\cam_alarm_1.wav). |
"SETUP" – settings of audio player parameters. | board<> | Sound unit of archive player. |
flags<> | Flags. | |
h<> | Height of settings dialog (0 – 100). | |
name<> | Object name. | |
voice<> | Sound notification. | |
voice_board<> | Sound unit of notification. | |
w<> | Width of settings dialog (0 – 100). | |
x<> | Left top corner of settings dialog (0 – 100). | |
y<> | Left top corner of settings dialog (0 – 100). | |
"STOP_WAV" – stops audio file. | - | - |
Properties of the PLAYER object are given in the following table.
Properties of the PLAYER object | Description of properties |
ID<> | Object ID. |
PARENT_ID<> | Parent object ID. |
Examples of using events and reactions of the PLAYER object:
Play the audio file when the camera stops recording:
OnEvent("CAM",N,"REC_STOP") { DoReact("PLAYER","1","PLAY_WAV","file<C:\Program Files (x86)\Intellect\Wav\cam_alarm_"+N+".wav>"); }
Stop playing the audio file when the camera starts recording:
OnEvent("CAM",N,"REC") { DoReact("PLAYER","1","STOP_WAV"); }