@signalwire/js
Advanced tools
Comparing version 1.3.0-alpha.7.5 to 1.3.0-alpha.7.6
@@ -18,2 +18,3 @@ import { PeerType } from './constants'; | ||
applyMediaConstraints(kind: string, constraints: MediaTrackConstraints): Promise<void>; | ||
private _getSenderByKind; | ||
startNegotiation(): Promise<void>; | ||
@@ -20,0 +21,0 @@ onRemoteSdp(sdp: string): Promise<void>; |
@@ -41,3 +41,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
try { | ||
const sender = this.instance.getSenders().find(({ track }) => track.kind === kind); | ||
const sender = this._getSenderByKind(kind); | ||
if (!sender) { | ||
@@ -58,3 +58,3 @@ return logger.info(`These is not a '${kind}' sender to stop.`); | ||
try { | ||
const sender = this.instance.getSenders().find(({ track }) => track.kind === kind); | ||
const sender = this._getSenderByKind(kind); | ||
if (!sender) { | ||
@@ -81,3 +81,3 @@ return logger.info(`These is not a '${kind}' sender to restore.`); | ||
try { | ||
const sender = this.instance.getSenders().find(({ track }) => track.kind === kind); | ||
const sender = this._getSenderByKind(kind); | ||
if (!sender || !sender.track) { | ||
@@ -96,3 +96,3 @@ return null; | ||
try { | ||
const sender = this.instance.getSenders().find(({ track }) => track.kind === kind); | ||
const sender = this._getSenderByKind(kind); | ||
if (!sender || !sender.track) { | ||
@@ -111,2 +111,5 @@ return logger.info('No sender to apply constraints', kind, constraints); | ||
} | ||
_getSenderByKind(kind) { | ||
return this.instance.getSenders().find(({ track }) => (track && track.kind === kind)); | ||
} | ||
startNegotiation() { | ||
@@ -113,0 +116,0 @@ return __awaiter(this, void 0, void 0, function* () { |
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.5"; | ||
export declare const VERSION = "1.3.0-alpha.7.6"; | ||
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.5'; | ||
export const VERSION = '1.3.0-alpha.7.6'; | ||
setAgentName(`JavaScript SDK/${VERSION}`); | ||
export { Relay, Verto, CantinaAuth }; |
{ | ||
"name": "@signalwire/js", | ||
"version": "1.3.0-alpha.7.5", | ||
"version": "1.3.0-alpha.7.6", | ||
"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
4414
310905