|
@@ -341,16 +341,16 @@ export class SessionManagerPlus {
|
|
|
* @param session - Session to get the media stream from.
|
|
|
*/
|
|
|
public getLocalMediaStream(session: Session): MediaStream | undefined {
|
|
|
- const sdh = session.sessionDescriptionHandler
|
|
|
- if (!sdh) {
|
|
|
+ const hsh = session.sessionDescriptionHandler
|
|
|
+ if (!hsh) {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (!(sdh instanceof Web.SessionDescriptionHandler)) {
|
|
|
+ if (!(hsh instanceof Web.SessionDescriptionHandler)) {
|
|
|
throw new Error(
|
|
|
'Session description handler not instance of web SessionDescriptionHandler'
|
|
|
)
|
|
|
}
|
|
|
- return sdh.localMediaStream
|
|
|
+ return hsh.localMediaStream
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -358,16 +358,16 @@ export class SessionManagerPlus {
|
|
|
* @param session - Session to get the media stream from.
|
|
|
*/
|
|
|
public getRemoteMediaStream(session: Session): MediaStream | undefined {
|
|
|
- const sdh = session.sessionDescriptionHandler
|
|
|
- if (!sdh) {
|
|
|
+ const hsh = session.sessionDescriptionHandler
|
|
|
+ if (!hsh) {
|
|
|
return undefined
|
|
|
}
|
|
|
- if (!(sdh instanceof Web.SessionDescriptionHandler)) {
|
|
|
+ if (!(hsh instanceof Web.SessionDescriptionHandler)) {
|
|
|
throw new Error(
|
|
|
'Session description handler not instance of web SessionDescriptionHandler'
|
|
|
)
|
|
|
}
|
|
|
- return sdh.remoteMediaStream
|
|
|
+ return hsh.remoteMediaStream
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -605,11 +605,11 @@ export class SessionManagerPlus {
|
|
|
`[${inviter.id}] Found srflx ICE candidate, stop waiting...`
|
|
|
)
|
|
|
// In sip.js > 0.20.1 this cast should be removed as iceGatheringComplete will be public
|
|
|
- const sdh =
|
|
|
+ const hsh =
|
|
|
sessionDescriptionHandler as Web.SessionDescriptionHandler & {
|
|
|
iceGatheringComplete: () => void
|
|
|
}
|
|
|
- sdh.iceGatheringComplete()
|
|
|
+ hsh.iceGatheringComplete()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1524,14 +1524,14 @@ export class SessionManagerPlus {
|
|
|
// Session properties used to pass options to the SessionDescriptionHandler:
|
|
|
//
|
|
|
// 1) Session.sessionDescriptionHandlerOptions
|
|
|
- // SDH options for the initial INVITE transaction.
|
|
|
+ // hsH options for the initial INVITE transaction.
|
|
|
// - Used in all cases when handling the initial INVITE transaction as either UAC or UAS.
|
|
|
// - May be set directly at anytime.
|
|
|
// - May optionally be set via constructor option.
|
|
|
// - May optionally be set via options passed to Inviter.invite() or Invitation.accept().
|
|
|
//
|
|
|
// 2) Session.sessionDescriptionHandlerOptionsReInvite
|
|
|
- // SDH options for re-INVITE transactions.
|
|
|
+ // hsH options for re-INVITE transactions.
|
|
|
// - Used in all cases when handling a re-INVITE transaction as either UAC or UAS.
|
|
|
// - May be set directly at anytime.
|
|
|
// - May optionally be set via constructor option.
|