Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amazon-ivs-web-broadcast

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-ivs-web-broadcast - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

18

dist/src/stage/core-api/analytics/stats.event.d.ts
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */
import { SfuResource } from '../../../client-common/types';
import { SdpFeatures } from '../sdp/sdp-munger';
import { StageToken } from '../token';
import { MultihostConfigurationPayload } from './configuration.event';
import { StageAnalyticsEvent } from './event';

@@ -22,6 +24,6 @@ import { TraceId } from './random.uuid';

*/
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, outboundStats: RTCOutboundRtpStreamStats, remoteInboundRtpStats?: RTCRemoteInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, outboundStats?: RTCOutboundRtpStreamStats, remoteInboundRtpStats?: RTCRemoteInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, videoConfig?: MultihostConfigurationPayload, connectionDuration?: number);
}
export declare class PublishedVideoStatsWindowEvent extends StageAnalyticsEvent {
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, curOutboundStats: RTCOutboundRtpStreamStats, prevOutboundStats: RTCOutboundRtpStreamStats, curRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, prevRemoteInboundStats?: RTCRemoteInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, curOutboundStats?: RTCOutboundRtpStreamStats, prevOutboundStats?: RTCOutboundRtpStreamStats, curRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, prevRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, videoConfig?: MultihostConfigurationPayload);
}

@@ -39,6 +41,6 @@ /**

*/
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, outboundStats: RTCOutboundRtpStreamStats, remoteInboundStats?: RTCRemoteInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, outboundStats?: RTCOutboundRtpStreamStats, remoteInboundStats?: RTCRemoteInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, videoConfig?: MultihostConfigurationPayload, connectionDuration?: number, sdpFeatures?: SdpFeatures);
}
export declare class PublishedAudioStatsWindowEvent extends StageAnalyticsEvent {
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, curOutboundStats: RTCOutboundRtpStreamStats, prevOutboundStats: RTCOutboundRtpStreamStats, curRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, prevRemoteInboundStats?: RTCRemoteInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, sfuResource: SfuResource, curOutboundStats?: RTCOutboundRtpStreamStats, prevOutboundStats?: RTCOutboundRtpStreamStats, curRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, prevRemoteInboundStats?: RTCRemoteInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, videoConfig?: MultihostConfigurationPayload, sdpFeatures?: SdpFeatures);
}

@@ -57,3 +59,3 @@ /**

*/
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, stats: RTCInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, stats?: RTCInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, connectionDuration?: number, jitterBufferMinDelayInMs?: number);
}

@@ -69,3 +71,3 @@ export declare class SubscribedVideoStatsWindowEvent extends StageAnalyticsEvent {

*/
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, curStats: RTCInboundRtpStreamStats, prevStats: RTCInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, curStats?: RTCInboundRtpStreamStats, prevStats?: RTCInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats);
}

@@ -84,3 +86,3 @@ /**

*/
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, stats: RTCInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, stats?: RTCInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, connectionDuration?: number, sdpFeatures?: SdpFeatures, jitterBufferMinDelayInMs?: number);
}

@@ -96,3 +98,3 @@ export declare class SubscribedAudioStatsWindowEvent extends StageAnalyticsEvent {

*/
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, curStats: RTCInboundRtpStreamStats, prevStats: RTCInboundRtpStreamStats);
constructor(token: StageToken, traceId: TraceId, remoteParticipantID: string, sfuResource: SfuResource, curStats?: RTCInboundRtpStreamStats, prevStats?: RTCInboundRtpStreamStats, iceCandidatePairStats?: RTCIceCandidatePairStats, sdpFeatures?: SdpFeatures);
}

@@ -23,9 +23,19 @@ import { AnalyticsTracker } from '../../client-common/analytics/analytics-tracker';

private simulcastState;
private sdp;
private sdpFeatures;
private multihostConfiguration;
private prevOutboundAudioStats?;
private prevInboundAudioStats?;
private prevOutboundVideoStats;
private prevInboundStats;
private prevInboundVideoStats;
private prevRemoteInboundStats;
private sfuResource;
private connectionStartedTimestamp;
private jitterBufferMinDelayInMs;
constructor(action: Action, token: StageToken, traceId: TraceId, identifier: string, analyticsTracker: AnalyticsTracker);
private static defaultMultihostConfiguration;
/**
* Updates the audio nacks field reported in the client stats.
*/
set sdpAnswer(sdp: string);
start(peerConnection: RTCPeerConnection, simulcastEnabled?: boolean): void;

@@ -35,2 +45,3 @@ stop(): void;

updateMultihostConfiguration(audioTrack: AudioTrackWithConfig | undefined, videoTrack: VideoTrackWithConfig | undefined): Promise<void>;
updateJitterBufferMinDelay(delayInMs: number | undefined): void;
private onPeerConnectionStateChange;

@@ -37,0 +48,0 @@ private setupIntervals;

@@ -39,2 +39,3 @@ import { SfuResource } from '../../client-common/types';

private sdpExchangers;
private getJitterBufferMinDelayInMs;
/**

@@ -136,2 +137,4 @@ * Creates an instance of the [[PeerClient]].s

private addTransceivers;
private applyJitterBufferMinDelay;
private exchangeSdp;
private getAudioEncodingFromConfig;

@@ -138,0 +141,0 @@ private getVideoEncodingLayersFromConfig;

@@ -0,1 +1,4 @@

export declare type SdpFeatures = {
audioNacks: boolean;
};
/**

@@ -46,2 +49,8 @@ * [[SDP]] includes a few helper functions for parsing sdp string.

hasRtpHeaderExtensionId(targetId: number): boolean;
/**
* Detects whether audio nacks have been appended to the server answer.
* Dictates whether we nack audio packets for either publisher or subscriber from
* their nearest edge SFU.
*/
hasAudioNacksEnabled(): boolean;
}

@@ -165,2 +165,4 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */

private trackMessageParseError;
private trackStageSocketMessageParseError;
private trackStageStateMessageParseError;
/**

@@ -206,2 +208,3 @@ * Sets the isStagePublishing field for use in the Stage BroadcastMinute event.

supportsSdpExchange(): boolean;
jitterBufferMinDelayInMs(): number | undefined;
/**

@@ -208,0 +211,0 @@ * Returns stats for this StageConnection

@@ -0,1 +1,2 @@

/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */
export declare const DEFAULT_TOKEN_DATA: {

@@ -26,2 +27,4 @@ exp: number;

static readonly LOCAL_OFFER_WITH_ADDED_LAYERS_ALLOCATION_EXTENSION_WITH_GAP_ID: string;
static readonly REMOTE_ANSWER_WITH_AUDIO_NACKS: string;
static readonly REMOTE_ANSWER_WITHOUT_AUDIO_NACKS: string;
}
{
"name": "amazon-ivs-web-broadcast",
"version": "1.10.0",
"version": "1.10.1",
"description": "Amazon IVS Web Broadcast SDK",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc