Skip to content

Commit

Permalink
feat: add getter for remote description (webex#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaldino authored and GitHub Enterprise committed Apr 27, 2022
1 parent af839c1 commit 021b771
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/peer-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ class PeerConnection extends EventEmitter {
return this.pc.localDescription;
}

/**
* Get the remote description from this PeerConnection.
*
* @returns An RTCSessionDescription representing the remote description, or null if none has been set.
*/
getRemoteDescription(): RTCSessionDescription | null {
return this.pc.remoteDescription;
}

/**
* Returns an array of RTCRtpSender objects, each of which represents the RTP sender responsible
* for transmitting one track's data. A sender object provides methods and properties for
Expand Down

0 comments on commit 021b771

Please sign in to comment.