如何识别对手用户在 Quickblox SDK 中启用或禁用视频。请给出解决方案或委托方法
问问题
286 次
2 回答
0
您还可以使用 QuickBlox SDK 的系统通知功能。例如,用户将发送带有此事件的系统消息(禁用相机),其他用户将侦听此事件并执行所需的操作(Android 指南)
于 2017-09-06T06:48:41.283 回答
0
您可以通过 WebRTC Stats 报告检查这一点。要开始收集报告信息,请执行以下操作:
[QBRTCConfig setStatsReportTimeInterval:5]; // 5 seconds
并且采用 QBRTCClientDelegate 协议的类将被通知
- (void)session:(QBRTCSession *)session updatedStatsReport:(QBRTCStatsReport *)report forUserID:(NSNumber *)userID {
double audioReceivedBitrate = report.audioReceivedBitrateTracker.bitrate;
double videoReceivedBitrate = report.videoReceivedBitrateTracker.bitrate;
//You can check Bitrate of the received video.
NSMutableString *result = [NSMutableString string];
// Video receive stats.
NSString *videoReceiveFormat = @"VR (recv) %@x%@@%@fps | (decoded)%@ | (output)%@fps | %@/%@ | %@ms\n";
[result appendString:[NSString stringWithFormat:videoReceiveFormat,
report.videoReceivedWidth, report.videoReceivedHeight, report.videoReceivedFps,
report.videoReceivedDecodedFps,
report.videoReceivedOutputFps,
report.videoReceivedBitrate, report.availableReceiveBandwidth,
report.videoReceivedDecodeMs]];
NSLog(@"%@", result);
}
供参考:Quickblox API
于 2017-09-05T07:55:04.230 回答