setCapabilities method

bool setCapabilities(
  1. CodecCapability? caps
)

Implementation

bool setCapabilities(CodecCapability? caps) {
  if (caps == null) {
    return false;
  }
  final mline = _mline(caps.kind);
  if (mline == null) {
    return false;
  }
  mline['payloads'] = caps.payloads.join(' ');
  mline['rtp'] = caps.codecs;
  mline['fmtp'] = caps.fmtp;
  mline['rtcpFb'] = caps.rtcpFb;
  return true;
}