diff --git a/API.md b/API.md index 4660a64..a32619e 100644 --- a/API.md +++ b/API.md @@ -14,11 +14,18 @@ export interface RtcConfig { bindAddress?: string; enableIceTcp?: boolean; enableIceUdpMux?: boolean; + disableAutoNegotiation?: boolean; + disableFingerprintVerification?: boolean; + disableAutoGathering?: boolean; + forceMediaTransport?: boolean; portRangeBegin?: number; portRangeEnd?: number; maxMessageSize?: number; mtu?: number; iceTransportPolicy?: TransportPolicy; + certificatePemFile?: string; + keyPemFile?: string; + keyPemPass?: string; } export const enum RelayType { @@ -65,6 +72,27 @@ export const enum DescriptionType { } ``` +**setLocalDescription: (sdp: string, init?: LocalDescriptionInit) => void** + +Set Local Description and optionally the ICE ufrag/pwd to use. These should not +be set as they will be generated automatically as per the spec. +``` +export interface LocalDescriptionInit { + iceUfrag?: string; + icePwd?: string; +} +``` + +**remoteFingerprint: () => CertificateFingerprint** + +Returns the certificate fingerprint used by the remote peer +``` +export interface CertificateFingerprint { + value: string; + algorithm: 'sha-1' | 'sha-224' | 'sha-256' | 'sha-384' | 'sha-512' | 'md5' | 'md2'; +} +``` + **addRemoteCandidate: (candidate: string, mid: string) => void** Add remote candidate info