onvif_server/constants.rs
1/// Token for the single media profile exposed by this device.
2/// Used in GetProfiles, GetStreamUri, and all PTZ operations.
3pub const PROFILE_TOKEN: &str = "profile_0";
4
5/// Token for the single video source.
6/// Referenced in VideoSourceConfiguration elements.
7pub const VIDEO_SOURCE_TOKEN: &str = "video_src_0";
8
9/// Token for the PTZ node describing the physical PTZ capabilities.
10/// Referenced in GetNodes and GetNode responses.
11pub const PTZ_NODE_TOKEN: &str = "ptz_node_0";
12
13/// Token for the PTZ configuration attached to the media profile.
14/// Used in GetConfiguration and PTZ service move operations.
15pub const PTZ_CONFIG_TOKEN: &str = "ptz_cfg_0";
16
17/// ONVIF PTZ translation space URI for field-of-view relative moves.
18/// Used as the Space field in RelativeMove PanTilt arguments.
19pub const TRANSLATION_SPACE_FOV: &str =
20 "http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationSpaceFov";
21
22/// Token for the single video encoder configuration.
23pub const VIDEO_ENCODER_TOKEN: &str = "video_enc_0";