diff --git a/src/peer-connection.ts b/src/peer-connection.ts index 1c031ad..0986b9c 100644 --- a/src/peer-connection.ts +++ b/src/peer-connection.ts @@ -1,6 +1,6 @@ import { EventEmitter } from './event-emitter'; -import { log } from './util/logger'; import { createRTCPeerConnection } from './rtc-peer-connection-factory'; +import { log } from './util/logger'; /** * A type-safe form of the DOMString used in the MediaStreamTrack.kind field. @@ -45,6 +45,15 @@ class PeerConnection extends EventEmitter { }; } + /** + * Get the underlying RTCPeerConnection. + * + * @returns The underlying RTCPeerConnection. + */ + getUnderlyingRTCPeerConnection(): RTCPeerConnection { + return this.pc; + } + /** * Adds a new media track to the set of tracks which will be transmitted to the other peer. *