MNS actively pushes message notifications by topic to users. You can conveniently receive the messages if an HTTP service can be publicly accessed.
The basic structure of a video media repository notification is as follows:
The outermost layer is the structure body of MNS.
For details about the definition and format of MNS, see MNS - Notification operations.
message bodyof MNS is the structure body of the media repository.
After receiving the
message body, MNS further resolves the message of the media repository. For details about the resolution steps and sample codes, see Receive a message in queue mode.
The topic (notification) mode is convenient. However, as the HTTP service can be publicly accessed, illegal calls and attacks must be prevented. For details about how to identify whether a message is initiated by MNS, see the MNS documentation Endpoint signature authentication.