Example #1
0
 internal RTCRtpCodecCapability(ref RTCRtpCodecCapabilityInternal v)
 {
     mimeType    = v.mimeType.AsAnsiStringWithFreeMem();
     clockRate   = v.clockRate;
     channels    = v.channels;
     sdpFmtpLine =
         v.sdpFmtpLine != IntPtr.Zero ? v.sdpFmtpLine.AsAnsiStringWithFreeMem() : null;
 }
Example #2
0
        internal RTCRtpCodecCapabilityInternal Cast()
        {
            RTCRtpCodecCapabilityInternal instance = new RTCRtpCodecCapabilityInternal
            {
                channels    = this.channels,
                clockRate   = this.clockRate,
                mimeType    = this.mimeType.ToPtrAnsi(),
                sdpFmtpLine = this.sdpFmtpLine.ToPtrAnsi()
            };

            return(instance);
        }