onMetadata [2/2]
Occurs when the metadata is received.
virtual void onMetadata(PlayerMetadataType type,
const uint8_t *data, size_t length) = 0;
- 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: RtePlayerMetadataType.
- data
- The metadata.
- length
- Size of data (in bytes).