getShareAudioStats method

Future<List?> getShareAudioStats()

Retrieves statistics for the audio riding along with the participant’s screen share.

  • This is the system/tab audio published with a screen share, not the participant’s microphone — use getAudioStats for that.
  • Android publishes no separate share-audio track: withAudio mixes system audio into the microphone track, so for an Android sharer this returns null locally and an empty list remotely, and the shared audio shows up in getAudioStats.

Returns

  • A List<dynamic>? of per-track share-audio statistics — one entry per published share-audio track — or null when the participant is not sharing audio.

Example

final shareAudio = await participant.getShareAudioStats();
if (shareAudio != null && shareAudio.isNotEmpty) {
  print('Share audio bitrate: ${shareAudio.first['bitrate']}');
}

Implementation

Future<List<dynamic>?> getShareAudioStats() async =>
    _shareAudioStatsHandler == null
        ? null
        : await _shareAudioStatsHandler!(id);