getShareAudioStats method
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:
withAudiomixes system audio into the microphone track, so for an Android sharer this returnsnulllocally 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 — ornullwhen 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);