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.
  • Local network and playback experience are delivered periodically through onLocalQualitySnapshot(). FY server quality level changes are delivered separately through onNetworkQualityChanged(). Call MeetingEngine.getMetric() for detailed per-track statistics on demand.
  • 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).

onLocalQualitySnapshot(snapshot)

Description: Delivers local uplink and downlink network quality and remote audio/video playback experience from the same sample of the current meeting. The callback stays on the RTC statistics thread. 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 an FY server quality report, without debouncing; when the level hasn’t changed, trend is STABLE. It is independent of the local quality snapshot. Parameters: Returns: None (Unit). For the data type, see SRTC types; for the levels, see SRTC enums.