Skip to content

Commit

Permalink
feat: add getunderlyingrtcpeerconnection method on peerconnection cla…
Browse files Browse the repository at this point in the history
…ss (#64)
  • Loading branch information
mccarthytyler authored and GitHub Enterprise committed Mar 11, 2022
1 parent 3e87bac commit 5abb6be
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/peer-connection.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 5abb6be

Please sign in to comment.