Red5 Documentation

Core SDK Examples – Subscribe Metadata Messages

The Receiving metadata messages example shows how to receive metadata messages using the ICallbackHandler interface. It also shows how to implement a simple video data renderer and use it to set up a subscriber client.

The DataDumper class implements two different interfaces:

  • The ISingleRenderer interface is used in the method AddStream of the client object, while
  • The ICallbackHandler interface allows subscribing for different callback messages from the client using the method SetCallbackHandler.

This application is designed to be used together with the sending metadata example, and the stored frames should have the same file names as those embedded into frame data. The SaveEveryNthFrame parameter defines how often received frames will be saved.

See the Basic Integration example for project setup, and the simple subscribe example for the setup of the subscriber client.