onMetadata [2/2]

Occurs when the metadata is received.

public void onMetadata(int type, byte[] data){}
Since
v4.5.0

To receive the metadata of the media stream, call registerObserver to register a player observer object first.

Trigger timing

After the SDK parses the metadata of the media stream being played, it triggers this callback to report the data type and its content.

Restrictions

None.

Parameters

type
The metadata type.
  • 1: The type is SEI.
data
The metadata.