onMetadata [2/2]

Callback for receiving metadata from the media stream.

public void onMetadata(int type, byte[] data)
Since
Available since v4.4.0.

You can receive metadata from the media stream only after calling registerObserver to register a player observer object.

Trigger Timing

This callback is triggered after the SDK parses the metadata in the media stream being played by the player, reporting the data type and its content.

Parameters

type
The type of metadata:
  • 0: SEI (Supplemental Enhancement Information) type.
data
The parsed metadata.