@signalwire/js
Advanced tools
Comparing version 1.3.0-alpha.9.4 to 1.3.0-alpha.9.5
@@ -216,4 +216,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.instance.addEventListener('track', (event) => { | ||
const notification = { type: 'trackAdd', event }; | ||
this.call._dispatchNotification(notification); | ||
if (this.isSimulcast) { | ||
const notification = { type: 'trackAdd', event }; | ||
this.call._dispatchNotification(notification); | ||
} | ||
this.options.remoteStream = event.streams[0]; | ||
@@ -238,3 +240,3 @@ const { remoteElement, remoteStream, screenShare } = this.options; | ||
logger.info('Local video tracks: ', videoTracks); | ||
if (typeof this.instance.addTransceiver === 'function') { | ||
if (this.isOffer && typeof this.instance.addTransceiver === 'function') { | ||
audioTracks.forEach(track => { | ||
@@ -272,3 +274,2 @@ this.options.userVariables.microphoneLabel = track.label; | ||
} | ||
this._logTransceivers(); | ||
} | ||
@@ -288,8 +289,2 @@ else if (typeof this.instance.addTrack === 'function') { | ||
} | ||
if (this.options.negotiateAudio) { | ||
this._checkMediaToNegotiate('audio'); | ||
} | ||
if (this.options.negotiateVideo) { | ||
this._checkMediaToNegotiate('video'); | ||
} | ||
if (screenShare === false) { | ||
@@ -300,5 +295,9 @@ muteMediaElement(localElement); | ||
} | ||
else if (localStream === null) { | ||
this.startNegotiation(); | ||
if (this.options.negotiateAudio) { | ||
this._checkMediaToNegotiate('audio'); | ||
} | ||
if (this.options.negotiateVideo) { | ||
this._checkMediaToNegotiate('video'); | ||
} | ||
this._logTransceivers(); | ||
}); | ||
@@ -305,0 +304,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.9.4"; | ||
export declare const VERSION = "1.3.0-alpha.9.5"; | ||
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.9.4'; | ||
export const VERSION = '1.3.0-alpha.9.5'; | ||
setAgentName(`JavaScript SDK/${VERSION}`); | ||
export { Relay, Verto, CantinaAuth }; |
{ | ||
"name": "@signalwire/js", | ||
"version": "1.3.0-alpha.9.4", | ||
"version": "1.3.0-alpha.9.5", | ||
"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
335662
4813