ONVIF_SetBool
function ONVIF_SetBool (ParamIdentifier: string; Value: Boolean): Boolean;
bool __fastcall ONVIF_SetBool(System::UnicodeString ParamIdentifier, bool Value);
public bool ONVIF_SetBool(string ParamIdentifier, bool Value);
Public Function ONVIF_SetBool(ParamIdentifier As String, Value As Boolean) As Boolean
BOOL ONVIF_SetBool (wchar_t *ParamIdentifier, BOOL Value);
Sets, to Value, a boolean parameter of the Datastead RTSP/RTMP/HTTP/ONVIF DirectShow Source Filter used by the current IP camera or URL source (identifier ending with _bool). Returns false if the current source is not running through this filter, or if ParamIdentifier is not a boolean parameter of the filter.
Use the function that matches the suffix of the identifier: ONVIF_SetBool (_bool), ONVIF_SetInt (_int), ONVIF_SetDouble (_double), ONVIF_SetStr (_str). The identifiers are listed in the Parameter identifiers chapter of the filter documentation.
These functions act on the filter while the source is running. Some settings apply immediately, e.g. RTSP_VideoStream_Decode_KeyFrames_Only_bool (decodes only the key frames, to save CPU). Others are read only when the URL is opened, e.g. RTSP_AudioStream_Enabled_bool, which TVideoGrabber sets itself at each start from its audio settings (AudioDeviceRendering, AudioRecording): changing them while the source is running has no effect. The parameters that have a "url param" name can be passed at the end of the URL instead, see the Using from TVideoGrabber chapter of the filter documentation.
To switch the audio on and off while the source is running, do not use these functions: start with AudioDeviceRendering enabled, then enable or disable MuteAudioRendering.