onPlayerMediaEvent property
getter/setter pair
The callback triggered when a media event occurs during streaming playing.
Available since: 1.1.0
Description: This callback is used to receive pull streaming events.
Use cases: You can use this callback to make statistics on stutters or to make friendly displays in the UI of the app.
When to trigger: After calling the startPublishingStream
, this callback is triggered when an event such as audio and video jamming and recovery occurs in the playing stream.
streamID
Stream ID.event
Specific events received when playing the stream.
Implementation
static void Function(String streamID, ZegoPlayerMediaEvent event)?
onPlayerMediaEvent;