Go to documentation repository
Page History
...
Command – command description | Parameters | Description |
"PLAY_WAV" – plays audio file. | file<> | Audio file with full path to it. |
"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.
...
Examples of using events and reactions of the PLAYER object:
Play the audio file
which address is «C:\ Program Files\Intellect\Wav\cam_alarm_1.wav» while enabling flag of audio player operation.when the camera stops recording:
Code Block OnEvent("PLAYERCAM","1"N,"flagsREC_STOP") // enable flag of audio player operation { DoReact("PLAYER","1","PLAY_WAV","file< Cfile<C:\Program programFiles files(x86)\intellectIntellect\wavWav\cam_alarm_1.wav >"+N+".wav>"); // play audio file }
Stop playing the audio file when the camera starts recording:
Code Block OnEvent("CAM",N,"REC") { DoReact("PLAYER","1","STOP_WAV"); }
Overview
Content Tools