@@ -230,7 +230,7 @@ export default class TraceablePeerConnection {
230230 * media direction will be adjusted to 'inactive' in order to suspend
231231 * the transmission.
232232 * @type {boolean }
233- * @private
233+ * @internal
234234 */
235235 this . audioTransferActive = ! ( options . startSilent === true ) ;
236236
@@ -266,7 +266,7 @@ export default class TraceablePeerConnection {
266266 * media direction will be adjusted to 'inactive' in order to suspend
267267 * the transmission.
268268 * @type {boolean }
269- * @private
269+ * @internal
270270 */
271271 this . videoTransferActive = true ;
272272
@@ -1232,7 +1232,7 @@ export default class TraceablePeerConnection {
12321232 * @return {string } one of the SDP direction constants ('sendrecv, 'recvonly' etc.)
12331233 * which should be used when setting
12341234 * local description on the peerconnection.
1235- * @private
1235+ * @internal
12361236 */
12371237 getDesiredMediaDirection ( mediaType : MediaType , isAddOperation = false ) : MediaDirection {
12381238 return this . tpcUtils . getDesiredMediaDirection ( mediaType , isAddOperation ) ;
@@ -2047,7 +2047,7 @@ export default class TraceablePeerConnection {
20472047 * @param {RTCSessionDescription } - The local description to be used.
20482048 * @returns {Array }
20492049 */
2050- getConfiguredVideoCodecs ( description : RTCSessionDescription ) : CodecMimeType [ ] {
2050+ getConfiguredVideoCodecs ( description ? : RTCSessionDescription ) : CodecMimeType [ ] {
20512051 return this . tpcUtils . getConfiguredVideoCodecs ( description ?. sdp ) ;
20522052 }
20532053
@@ -2543,7 +2543,7 @@ export default class TraceablePeerConnection {
25432543 * sender associated with the video source.
25442544 * @returns {Promise } promise that will be resolved when the operation is successful and rejected otherwise.
25452545 */
2546- setSenderVideoConstraints ( frameHeight : number , localVideoTrack : JitsiLocalTrack , preferredCodec : Optional < CodecMimeType > ) : Promise < void > {
2546+ setSenderVideoConstraints ( frameHeight : number , localVideoTrack : JitsiLocalTrack , preferredCodec ? : Optional < CodecMimeType > ) : Promise < void > {
25472547 if ( frameHeight < 0 || ! isValidNumber ( frameHeight ) ) {
25482548 throw new Error ( `Invalid frameHeight: ${ frameHeight } ` ) ;
25492549 }
@@ -2575,7 +2575,7 @@ export default class TraceablePeerConnection {
25752575 * @returns {Promise } - A promise that is resolved when the change is succesful on all the senders, rejected
25762576 * otherwise.
25772577 */
2578- setMediaTransferActive ( enable : boolean , mediaType : Optional < MediaType > ) : Promise < void > {
2578+ setMediaTransferActive ( enable : boolean , mediaType ? : Optional < MediaType > ) : Promise < void > {
25792579 logger . info ( `${ this } ${ enable ? 'Resuming' : 'Suspending' } media transfer.` ) ;
25802580
25812581 const senders = this . peerconnection . getSenders ( )
0 commit comments