Skip to main content
MeetingMediaEvent carries media events of the current meeting and is registered through MeetingEngine.mediaEvent. You can extend MeetingMediaSimpleEvent and override only what you need.

Usage notes

  • This interface covers connection state, raw remote frames, and aggregated quality statistics; for the receive state of a single remote video, use MeetingRemoteVideoEvent.
  • onRemoteVideoFrame() is called back on the SRTC media thread and must not block.
  • Media statistics are usually produced about every 5 seconds; for poor-network level changes, prefer onNetworkQualityChanged().
  • This listener is cleared when you exit the meeting; reassign it for the next meeting.

Methods

onMediaConnected()

Description: The connection to the current meeting’s SRTC media streaming server succeeded. Parameters: None. Returns: None (Unit).

onRemoteVideoFrame(uid, trackDesc, y, u, v, width, height, format, angle)

Description: Received one frame of raw remote video data. Parameters: Returns: None (Unit).

onMediaMetric(metric)

Description: Delivers a media performance metric snapshot of the current meeting. Parameters: Returns: None (Unit).

onVolumesReport(volumes)

Description: Delivers a volume snapshot of each user track in the current meeting. Parameters: Returns: None (Unit).

onActiveSpeakersChanged(speakers)

Description: The current meeting’s active speaker list changed. Parameters: Returns: None (Unit).

onNetworkQualityChanged(change)

Description: Called once for the uplink and once for the downlink each time the current meeting receives a quality report from the server, without debouncing; when the level hasn’t changed, trend is STABLE. Parameters: Returns: None (Unit). For the data type, see SRTC types; for the levels, see SRTC enums.