getReceivers method

  1. @override
Future<List<RTCRtpReceiver>> getReceivers()
override

Implementation

@override
Future<List<RTCRtpReceiver>> getReceivers() async {
  var receivers = jsutil.callMethod(_jsPc, 'getReceivers', []);

  var list = <RTCRtpReceiver>[];
  receivers.forEach((e) {
    list.add(RTCRtpReceiverWeb(e));
  });

  return list;
}