amazon-ivs-web-broadcast
Web Broadcasting SDK for Amazon Interactive Video Service
Namespaces
Enumerations
- ConnectionState
- LogLevels
- StageConnectionState
- StageEvents
- StageParticipantPublishState
- StageParticipantSubscribeState
- StreamType
- SubscribeType
Classes
Interfaces
- BroadcastClientConfig
- BroadcastClientEventPayloads
- CanvasDimensions
- DefaultConfig
- Emitter
- ErrorLogParams
- LogParams
- Logger
- LoggerParams
- NetworkReconnectConfig
- ResolutionConfig
- SimulcastConfiguration
- StageStrategy
- StageVideoConfiguration
- StreamConfig
- VideoComposition
- VideoDevice
Other Variables
Stream Config Variables
- BASIC_FULL_HD_LANDSCAPE
- BASIC_FULL_HD_PORTRAIT
- BASIC_LANDSCAPE
- BASIC_PORTRAIT
- STANDARD_LANDSCAPE
- STANDARD_PORTRAIT
References
LOG_LEVEL
Renames and re-exports LogLevels
Type Aliases
Callback
Ƭ Callback: () => unknown
Type declaration
▸ (): unknown
Returns
unknown
ConfigurationInstance
Ƭ ConfigurationInstance: Partial
<BroadcastClientConfig
> & DefaultConfig
ErrorFn
Ƭ ErrorFn: (args
: ErrorLogParams
) => void
Type declaration
▸ (args
): void
Parameters
Name | Type |
---|---|
args | ErrorLogParams |
Returns
void
LogFn
Ƭ LogFn: (args
: LogParams
) => void
Type declaration
▸ (args
): void
Parameters
Name | Type |
---|---|
args | LogParams |
Returns
void
Maybe
Ƭ Maybe<T
>: T
| undefined
Type parameters
Name |
---|
T |
PublishResponse
Ƭ PublishResponse: Promise
<{ peerConnection
: RTCPeerConnection
}>
SfuResource
Ƭ SfuResource: Object
Type declaration
Name | Type |
---|---|
cluster | string |
node | string |
StageParticipantInfo
Ƭ StageParticipantInfo: Object
Type declaration
Name | Type |
---|---|
attributes | Record <string , unknown > |
audioMuted | boolean |
capabilities | Set <StageParticipantCapabilities > |
id | string |
isLocal | boolean |
isPublishing | boolean |
userId | string |
userInfo | Record <string , unknown > |
videoStopped | boolean |
SubscribeRequest
Ƭ SubscribeRequest: Object
Type declaration
Name | Type |
---|---|
identifier | string |
silentAudioTrack? | MediaStreamTrack |
token? | string |
SubscribeResponse
Ƭ SubscribeResponse: Promise
<{ peerConnection
: RTCPeerConnection
}>
TraceRequest
Ƭ TraceRequest: Object
Type declaration
Name | Type |
---|---|
message | string |
remoteParticipantID? | string |
token | string |
ValuesOf
Ƭ ValuesOf<T
>: T
[keyof T
]
Type parameters
Name |
---|
T |
WHIPResource
Ƭ WHIPResource: Object
Type declaration
Name | Type |
---|---|
mediaControls? | string |
path? | string |
sessionDelete? | string |
Other Variables
BroadcastClientEvents
• Const
BroadcastClientEvents: Object
An enumeration describing the events emitted from the AmazonIVSBroadcastClient.
Type declaration
Name | Type | Description |
---|---|---|
ACTIVE_STATE_CHANGE | "activeStateChange" | Indicates that the broadcast start/stop state has changed. Param boolean activeStateChanged |
CONNECTION_STATE_CHANGE | "connectionStateChange" | Indicates that the webRTC connection state has changed. Param ConnectionState connectionStateChange |
ERROR | "clientError" | Indicates that the client has encountered an error. Param BroadcastClientError clientError |
__version
• Const
__version: string
Stream Config Variables
BASIC_FULL_HD_LANDSCAPE
• Const
BASIC_FULL_HD_LANDSCAPE: StreamConfig
A static landscape
stream configuration for a Basic
1080p IVS account.
BASIC_FULL_HD_PORTRAIT
• Const
BASIC_FULL_HD_PORTRAIT: StreamConfig
A static portrait
stream configuration for a Basic
1080p IVS account.
BASIC_LANDSCAPE
• Const
BASIC_LANDSCAPE: StreamConfig
A static landscape
stream configuration for a Basic
IVS account.
BASIC_PORTRAIT
• Const
BASIC_PORTRAIT: StreamConfig
A static portrait
stream configuration for a Basic
IVS account.
STANDARD_LANDSCAPE
• Const
STANDARD_LANDSCAPE: StreamConfig
A static landscape
stream configuration for a Standard
IVS account.
STANDARD_PORTRAIT
• Const
STANDARD_PORTRAIT: StreamConfig
A static portrait
stream configuration for a Standard
IVS account.
Functions
create
▸ create(broadcastConfig
): AmazonIVSBroadcastClient
Parameters
Name | Type |
---|---|
broadcastConfig | BroadcastClientConfig |
Returns
isSupported
▸ isSupported(): boolean
Check for feature support in current environment.
Returns
boolean