amazon-ivs-web-broadcast
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -10,3 +10,2 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ | ||
dataPlaneEndpoint?: string; | ||
disableBandwidthMunge?: boolean; | ||
disableXdp?: boolean; | ||
@@ -42,10 +41,2 @@ analyticsPostUrl?: string; | ||
/** | ||
* Internal API to read if client override config indicates disabling of the | ||
* removal of bs=AS:2500 from the SDP answer. | ||
* | ||
* @hidden | ||
* @returns - Boolean if specified in override config, else undefined. | ||
*/ | ||
export declare function isBandwidthMungeDisabled(): boolean | undefined; | ||
/** | ||
* Internal API to read if XDP feature has been disabled by client override | ||
@@ -52,0 +43,0 @@ * config. |
@@ -42,3 +42,3 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ | ||
edpInitialConnectDuration: number; | ||
edpInitialConnectAttempts: number; | ||
edpInitialConnectRetries: number; | ||
edpInitialStateDuration: number; | ||
@@ -50,2 +50,4 @@ edpStateUpdateCount: number; | ||
peerConnectionDuration: number; | ||
publishRetries: number; | ||
totalDurationWithRetries: number; | ||
sfuResource?: SfuResource; | ||
@@ -82,3 +84,3 @@ }); | ||
edpInitialConnectDuration: number; | ||
edpInitialConnectAttempts: number; | ||
edpInitialConnectRetries: number; | ||
edpInitialStateDuration: number; | ||
@@ -91,2 +93,4 @@ edpInitialStatePublishingCount: number; | ||
peerConnectionDuration: number; | ||
totalDurationWithRetries: number; | ||
subscribeRetryTimes: number; | ||
sfuResource?: SfuResource; | ||
@@ -133,3 +137,3 @@ }); | ||
edpInitialConnectDuration: number; | ||
edpInitialConnectAttempts: number; | ||
edpInitialConnectRetries: number; | ||
edpInitialStateDuration: number; | ||
@@ -144,4 +148,6 @@ edpInitialStatePublishingCount: number; | ||
firstFrameDuration: number; | ||
totalDurationWithRetries: number; | ||
subscribeRetryTimes: number; | ||
sfuResource?: SfuResource; | ||
}); | ||
} |
@@ -167,2 +167,8 @@ import { BroadcastClientError } from '../../../client-common/errors'; | ||
*/ | ||
readonly MALFORMED_TOKEN: { | ||
readonly code: 1000; | ||
readonly message: "Token is malformed"; | ||
readonly fatal: true; | ||
readonly nominal: true; | ||
}; | ||
readonly EXPIRED_TOKEN: { | ||
@@ -204,2 +210,8 @@ readonly code: 1001; | ||
}; | ||
readonly JOIN_TIMED_OUT: { | ||
readonly code: 1019; | ||
readonly message: "InitialConnectTimedOut"; | ||
readonly fatal: true; | ||
readonly nominal: false; | ||
}; | ||
readonly PUBLISH_TIMED_OUT: { | ||
@@ -206,0 +218,0 @@ readonly code: 1020; |
@@ -57,5 +57,5 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ | ||
edpStateUpdateCount: number; | ||
edpInitialConnectAttempts: number; | ||
edpInitialConnectRetries: number; | ||
}; | ||
/** @alpha */ | ||
/** @internal */ | ||
export declare enum StageConnectionStateChangeReason { | ||
@@ -103,2 +103,3 @@ USER_INITIATED = "user-initiated", | ||
[BroadcastStageConnectionEvents.STAGE_REFRESH]: () => void; | ||
[BroadcastStageConnectionEvents.ERROR]: (error: Error) => void; | ||
}; | ||
@@ -105,0 +106,0 @@ export declare class StageConnection extends TypedEmitter<ConnectionEventMap> { |
@@ -54,2 +54,9 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ | ||
readonly STATE_CHANGE: "stateChange"; | ||
/** | ||
* Indicates that an error has occurred | ||
* | ||
* @param payload - [[StageClientError]] | ||
* @event error | ||
*/ | ||
readonly ERROR: "error"; | ||
}; | ||
@@ -56,0 +63,0 @@ export declare const BroadcastStageSubscriptionEvents: { |
@@ -62,2 +62,3 @@ import { AnalyticsTracker } from '../../client-common/analytics/analytics-tracker'; | ||
private latestPubAttemptNum; | ||
private startConnectingTimestamp; | ||
constructor(token: StageToken, stageConnection: StageConnection, nonScopedLogger: Logger, traceId: TraceId, analyticsTracker: AnalyticsTracker); | ||
@@ -64,0 +65,0 @@ start: (tracks: TrackWithConfig[]) => void; |
@@ -45,4 +45,6 @@ import { AnalyticsTracker } from '../../client-common/analytics/analytics-tracker'; | ||
private failedRetries; | ||
private startConnectingTimestamp; | ||
private logger; | ||
private throttler; | ||
private cleanupFirstFrameTracking; | ||
constructor(id: string, token: StageToken, stageConnection: StageConnection, nonScopedLogger: Logger, traceId: TraceId, analyticsTracker: AnalyticsTracker); | ||
@@ -49,0 +51,0 @@ /** |
@@ -5,2 +5,3 @@ /*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ | ||
export { Stage, StageConnectionState, StageEvents } from './v2/stage'; | ||
export { type StageError, StageErrorCategory, StageErrorCode } from './core-api/stage-error-manager'; | ||
export { LocalStageStream, RemoteStageStream, StageStream } from './v2/stage-stream'; | ||
@@ -7,0 +8,0 @@ export { type StageAudioConfiguration, type StageVideoConfiguration, type SimulcastConfiguration, } from './core-api/configuration/defaults'; |
@@ -5,2 +5,3 @@ import { LogLevels } from '../../client-common/logger/logger.types'; | ||
import { StageConnectionState } from '../core-api/stage-connection'; | ||
import { StageError } from '../core-api/stage-error-manager'; | ||
import { StageStrategy } from './stage-strategy'; | ||
@@ -32,2 +33,3 @@ import { StageParticipantInfo, StageParticipantSubscribeState, StageParticipantPublishState } from './stage-participant/stage-participant'; | ||
private joinTraceId?; | ||
private errorManager; | ||
/** | ||
@@ -61,2 +63,3 @@ * Creates an instance of a Stage | ||
leave: () => void; | ||
private onBeforeUnloadCleanup; | ||
private cleanup; | ||
@@ -87,3 +90,9 @@ /** | ||
[StageEvents.STAGE_STREAM_MUTE_CHANGED]: (participantInfo: StageParticipantInfo, stream: StageStream) => void; | ||
[StageEvents.ERROR]: (error: StageError) => void; | ||
}; | ||
/** | ||
* Stage events | ||
* | ||
* @public | ||
*/ | ||
export declare enum StageEvents { | ||
@@ -145,3 +154,11 @@ /** | ||
*/ | ||
STAGE_PARTICIPANT_PUBLISH_STATE_CHANGED = "stageParticipantPublishStateChanged" | ||
STAGE_PARTICIPANT_PUBLISH_STATE_CHANGED = "stageParticipantPublishStateChanged", | ||
/** | ||
* Indicates a change to participant publish state | ||
* | ||
* @param payload - [ StageError ] | ||
* @event error | ||
* @internal | ||
*/ | ||
ERROR = "error" | ||
} |
{ | ||
"name": "amazon-ivs-web-broadcast", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Amazon IVS Web Broadcast SDK", | ||
@@ -48,8 +48,4 @@ "files": [ | ||
"test": "npx jest --runInBand --collect-coverage --config ./jest.config.js --forceExit --silent", | ||
"pretest:e2e": "npx rimraf ./e2e/tests-out && npm run build && npm --prefix ./e2e install ./e2e && tsc --incremental -p e2e/tsconfig.json", | ||
"test:e2e": "cd e2e/ && npx playwright test specs/ -c tests-out/", | ||
"test:e2e-broadcast": "npm run pretest:e2e && cd e2e/ && npx playwright test specs/broadcast/ -c tests-out/", | ||
"test:e2e-stages": "npm run pretest:e2e && cd e2e/ && npx playwright test specs/stagesv2/ -c tests-out/", | ||
"e2e-list": "npm run pretest:e2e && cd e2e/ && npx playwright test --list --reporter=json -c tests-out/ --project='Chrome Desktop' 2>&1| tee ./e2e-list.json", | ||
"e2e-create-report": "npm run e2e-list && node ./e2e/e2e-report.js", | ||
"test:e2e-stages": "cd e2e && npm run test:e2e-stages --", | ||
"test:e2e-broadcast": "cd e2e && npm run test:e2e-broadcast --", | ||
"typedoc": "npx typedoc --options ./typedoc.config.js", | ||
@@ -56,0 +52,0 @@ "examples": "npx webpack serve --config ./examples/webpack.config.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
629123
159
5572
2