@signalwire/js
Advanced tools
Comparing version 1.3.0-alpha.7.6 to 1.3.0-alpha.7.7
@@ -27,2 +27,5 @@ import { CallOptions, IVertoCanvasInfo, ICanvasInfo } from './interfaces'; | ||
declare const mutateCanvasInfoData: (canvasInfo: IVertoCanvasInfo) => ICanvasInfo; | ||
export { getUserMedia, getDevices, scanResolutions, getMediaConstraints, assureDeviceId, removeUnsupportedConstraints, checkDeviceIdConstraints, sdpStereoHack, sdpMediaOrderHack, sdpBitrateHack, destructSubscribeResponse, enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks, mutateCanvasInfoData, }; | ||
declare const checkIsDirectCall: ({ variables }: { | ||
variables: any; | ||
}) => boolean; | ||
export { getUserMedia, getDevices, scanResolutions, getMediaConstraints, assureDeviceId, removeUnsupportedConstraints, checkDeviceIdConstraints, sdpStereoHack, sdpMediaOrderHack, sdpBitrateHack, destructSubscribeResponse, enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks, mutateCanvasInfoData, checkIsDirectCall, }; |
@@ -272,2 +272,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
export { getUserMedia, getDevices, scanResolutions, getMediaConstraints, assureDeviceId, removeUnsupportedConstraints, checkDeviceIdConstraints, sdpStereoHack, sdpMediaOrderHack, sdpBitrateHack, destructSubscribeResponse, enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks, mutateCanvasInfoData, }; | ||
const checkIsDirectCall = ({ variables }) => { | ||
return typeof variables === 'object' && 'verto_svar_direct_call' in variables; | ||
}; | ||
export { getUserMedia, getDevices, scanResolutions, getMediaConstraints, assureDeviceId, removeUnsupportedConstraints, checkDeviceIdConstraints, sdpStereoHack, sdpMediaOrderHack, sdpBitrateHack, destructSubscribeResponse, enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks, mutateCanvasInfoData, checkIsDirectCall, }; |
@@ -18,2 +18,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { State } from './constants'; | ||
import { checkIsDirectCall } from './helpers'; | ||
const CONF_READY = 'CONF_READY'; | ||
@@ -73,2 +74,3 @@ const _handlePvtEvent = (session, pvtData) => __awaiter(void 0, void 0, void 0, function* () { | ||
call.nodeId = nodeId; | ||
call.isDirect = checkIsDirectCall(params); | ||
return call; | ||
@@ -75,0 +77,0 @@ }; |
@@ -22,2 +22,3 @@ import BrowserSession from '../BrowserSession'; | ||
doReinvite: boolean; | ||
isDirect: boolean; | ||
private _state; | ||
@@ -78,5 +79,5 @@ private _prevState; | ||
replace(callId: string): void; | ||
hold(): Promise<boolean>; | ||
unhold(): Promise<boolean>; | ||
toggleHold(): Promise<boolean>; | ||
hold(): Promise<boolean | void>; | ||
unhold(): Promise<boolean | void>; | ||
toggleHold(): Promise<boolean | void>; | ||
muteAudio(participantId?: string): void; | ||
@@ -83,0 +84,0 @@ unmuteAudio(participantId?: string): void; |
@@ -23,3 +23,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { trigger, register, deRegisterAll } from '../services/Handler'; | ||
import { enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks } from './helpers'; | ||
import { enableAudioTracks, disableAudioTracks, toggleAudioTracks, enableVideoTracks, disableVideoTracks, toggleVideoTracks, checkIsDirectCall } from './helpers'; | ||
import { objEmpty, isFunction } from '../util/helpers'; | ||
@@ -42,2 +42,3 @@ import { detachMediaStream, stopStream, setMediaElementSinkId, getUserMedia } from '../util/webrtc'; | ||
this.doReinvite = false; | ||
this.isDirect = false; | ||
this._state = State.New; | ||
@@ -285,2 +286,5 @@ this._prevState = State.New; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this._state >= State.Hangup) { | ||
return logger.warn('This call is not active', this.id, this.state); | ||
} | ||
const msg = new Modify(Object.assign(Object.assign({}, this.messagePayload), { action })); | ||
@@ -324,2 +328,3 @@ try { | ||
} | ||
this.isDirect = checkIsDirectCall(params); | ||
this.setState(State.Active); | ||
@@ -335,2 +340,3 @@ }); | ||
yield this.peer.onRemoteSdp(params.sdp); | ||
this.isDirect = checkIsDirectCall(params); | ||
this.setState(State.Early); | ||
@@ -337,0 +343,0 @@ }); |
import Relay from './src/SignalWire'; | ||
import Verto from './src/Verto'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export declare const VERSION = "1.3.0-alpha.7.6"; | ||
export declare const VERSION = "1.3.0-alpha.7.7"; | ||
export { Relay, Verto, CantinaAuth }; | ||
export * from '../common/src/util/interfaces'; | ||
export * from '../common/src/webrtc/interfaces'; |
@@ -5,4 +5,4 @@ import Relay from './src/SignalWire'; | ||
import CantinaAuth from '../common/src/webrtc/CantinaAuth'; | ||
export const VERSION = '1.3.0-alpha.7.6'; | ||
export const VERSION = '1.3.0-alpha.7.7'; | ||
setAgentName(`JavaScript SDK/${VERSION}`); | ||
export { Relay, Verto, CantinaAuth }; |
{ | ||
"name": "@signalwire/js", | ||
"version": "1.3.0-alpha.7.6", | ||
"version": "1.3.0-alpha.7.7", | ||
"description": "Relay SDK for JavaScript to connect to SignalWire.", | ||
@@ -5,0 +5,0 @@ "author": "SignalWire Team <open.source@signalwire.com>", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
311945
4429