getTransceivers method

  1. @override
Future<List<RTCRtpTransceiver>> getTransceivers()
override

Implementation

@override
Future<List<RTCRtpTransceiver>> getTransceivers() async {
  var transceivers = jsutil.callMethod(_jsPc, 'getTransceivers', []);

  var list = <RTCRtpTransceiver>[];
  transceivers.forEach((e) {
    list.add(RTCRtpTransceiverWeb.fromJsObject(e));
  });

  return list;
}