You can specify the metadata type (supports type combination) to subscribe
the required metadata details, and the details are returned in URI format over RTSP
(Real-Time Streaming Protocol).
Figure 1. API Calling Flow of
Subscribe Metadata by Type
-
Call /ISAPI/Streaming/channels/<ID>/metadata/capabilitiesby GET method to get the metadata
configuration capability.
-
Check whether the device supports subscribing metadata by type.
-
When the node <isSupportSubscribeType> is returned in the message
XML_Cap_MetadataCfg, it indicates that the device supports
metadata subscription and you can continue to perform the following
steps.
-
When the message XML_Cap_MetadataCfg does not contain node <isSupportSubscribeType>, it indicates that
the device does not support metadata subscription and please end this
task.
- Optional:
Call /ISAPI/Streaming/channels/<ID>/metadata by GET method to get the metadata
types that are supported to be subscribed.
-
Call /ISAPI/Streaming/channels/<ID>/metadata/subscribeType?format=json by POST method to specify metadata type to be
subscribed and get the crooesponding metadata details URI.