Skip to content

Commit

Permalink
add typedocs on local and remote stream methods
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividVeloso committed Dec 15, 2020
1 parent 9b1b5f9 commit 7edbc5e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/js/src/Modules/Verto/BrowserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ export default abstract class BrowserSession extends BaseSession {
}

/**
* Sets the local html element to receive the local stream.
* Sets the local html element that will receive the local stream.
*
* @example
*
Expand Down Expand Up @@ -667,7 +667,7 @@ export default abstract class BrowserSession extends BaseSession {
}

/**
* Sets the remote html element to receive the remote stream.
* Sets the remote html element that will receive the remote stream.
*
* @example
*
Expand Down
22 changes: 22 additions & 0 deletions packages/js/src/Modules/Verto/webrtc/BaseCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,32 @@ export default abstract class BaseCall implements IWebRTCCall {
this._targetNodeId = what;
}

/**
* Gets the local stream of the call.
* This can be used in a video/audio element to play the local media.
* [MediaStream](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream).
*
* @examples
*
* ```js
* call.localStream();
* ```
*/
get localStream() {
return this.options.localStream;
}

/**
* Gets the remote stream of the call.
* This can be used in a video/audio element to play the local media.
* [MediaStream](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream).
*
* @examples
*
* ```js
* call.remoteStream();
* ```
*/
get remoteStream() {
return this.options.remoteStream;
}
Expand Down

0 comments on commit 7edbc5e

Please sign in to comment.