Skip to main content

@pexip/infinity

Enumerations

Interfaces

Type Aliases

CallUuid

Ƭ CallUuid: string | undefined


ClientSideErrorMessage

Ƭ ClientSideErrorMessage: "Could not reconnect to the meeting" | "Could not execute critical network action" | "Could not find ICE candidates" | "WebRTC connection closed" | "WebRTC connection failed"


ConferenceStateEvent

Ƭ ConferenceStateEvent: ConferenceStatusMap["200"][``"result"``]


CurrentServiceType

Ƭ CurrentServiceType: RTCParticipantEvent["service_type"] | RequestTokenMap["200"][``"result"``]["current_service_type"]


DataChannelEvent

Ƭ DataChannelEvent: { body: Omit<MessageEvent, "direct"> ; type: "message" } | { body: FeccEvent ; type: "fecc" }


DisconnectReason

Ƭ DisconnectReason: "Browser closed" | "User initiated disconnect" | "Transfer"


EndpointResponse

Ƭ EndpointResponse<K>: K extends keyof Client ? GetEndpointResponse<K> : never

Type parameters

NameType
Kkeyof Client

ErrorSignal

Ƭ ErrorSignal: Signal<{ error: string ; errorCode: ExtendedInfinityErrorCode }>


EventsSourceType

Ƭ EventsSourceType: DisconnectEvent | MessageEvent | ConferenceStateEvent | PresentationEvent | RTCParticipantEvent | FeccEvent


ExtendedInfinityErrorCode

Ƭ ExtendedInfinityErrorCode: InfinityErrorCode | "#pex128" | "#pex117"


ExtendedInfinityErrorMessage

Ƭ ExtendedInfinityErrorMessage: InfinityErrorMessage | ClientSideErrorMessage


FeccEvent

Ƭ FeccEvent: Omit<FeccParticipantMap["Body"], "target">


GetEndpointParams

Ƭ GetEndpointParams<K>: Client[K] extends (...args: never) => unknown ? Parameters<Client[K]> : never

Type parameters

NameType
Kextends keyof Client

GetEndpointResponse

Ƭ GetEndpointResponse<K>: Client[K] extends (...args: never) => infer R ? Awaited<R> : unknown

Type parameters

NameType
Kextends keyof Client

InfinityCallRequired

Ƭ InfinityCallRequired: Pick<CallSignals, "onRemoteStream" | "onRemotePresentationStream" | "onPresentationConnectionChange" | "onRtcStats" | "onCallQualityStats" | "onCallQuality">


InfinityCallSignalsOptional

Ƭ InfinityCallSignalsOptional: Pick<Partial<CallSignals>, "onCallConnected">


InfinityClient

Ƭ InfinityClient: Omit<Client, "ack" | "update" | "newCandidate" | "sendOffer" | "statistics" | "takeFloor" | "releaseFloor" | "requestTheme" | "sendMessage"> & { sendApplicationMessage: (opt: { conferenceAlias?: string ; host?: string ; participantUuid?: string ; payload: Record<string, unknown> }) => Promise<GetEndpointResponse<"sendMessage">> ; sendMessage: (opt: { conferenceAlias?: string ; host?: string ; participantUuid?: string ; payload: MessageBody["payload"] }) => Promise<GetEndpointResponse<"sendMessage">> }


InfinityEventSignalsOptional

Ƭ InfinityEventSignalsOptional: Pick<Partial<EventSignals>, "onHold" | "onRefer" | "onFecc" | "onRefreshToken">


InfinitySignalsOptional

Ƭ InfinitySignalsOptional: Pick<Partial<InfinitySignals>, "onPinRequired" | "onParticipants" | "onError">


InfinitySignalsRequired

Ƭ InfinitySignalsRequired: Pick<InfinitySignals, "onConnected" | "onAnswer" | "onPresentationAnswer" | "onDisconnected">


Layout

Ƭ Layout: Transforms["layout"]


MediaType

Ƭ MediaType: CallsWebrtcParticipantMap["Body"][``"media_type"``]


MessageBody

Ƭ MessageBody: MessageConferenceMap["Body"]


RTCParticipantEvent

Ƭ RTCParticipantEvent: ParticipantsMap["200"][``"result"``][0]


Role

Ƭ Role: TransferParticipantMap["Body"][``"role"``]


SSOdMessage

Ƭ SSOdMessage: { code: 403 ; result: "forbidden" } | { result: "success" ; token: string } | { code: 503 ; result: "service unavailable" }


Screen

Ƭ Screen: ThemeSchema["direct_media_escalate"]


SignalName

Ƭ SignalName: keyof CallSignals | keyof EventSignals | keyof InfinitySignals


Stun

Ƭ Stun: RequestTokenMap["200"][``"result"``]["stun"]


ThemeSchema

Ƭ ThemeSchema: ThemeMap["200"][``"result"``]


Transforms

Ƭ Transforms: TransformLayoutMap["Body"][``"transforms"``]


Turn

Ƭ Turn: RequestTokenMap["200"][``"result"``]["turn"]

Functions

createCall

createCall(options): Call

Parameters

NameType
optionsCallOptions

Returns

Call


createCallSignals

createCallSignals<K>(more, scope?): Pick<Required<CallSignals>, SignalKeys>

Create and return all required and optional (if specified with more), signals for call to work

See

  • Signal
  • CallSignalsOptional

The following signals created by default

  • 'onRemoteStream',
  • REQUIRED_CALL_SIGNAL_KEYS

Type parameters

NameType
Kextends "onCallConnected"

Parameters

NameTypeDefault valueDescription
moreK[]undefinedKeys from CallSignalsOptional,
scopestring''any scope prefix for the generated signal name,

Returns

Pick<Required<CallSignals>, SignalKeys>


createInfinityClient

createInfinityClient(signals, callSignals): InfinityClient

Parameters

NameType
signalsInfinitySignals
callSignalsCallSignals

Returns

InfinityClient


createInfinityClientSignals

createInfinityClientSignals<K>(more, scope?): Pick<Required<InfinitySignals>, SignalKeys>

Create and return all required and optional (if specified with more), signals for infinity client to work

See

  • Signal
  • InfinitySignalsOptional

The following signals created by default

  • 'onConnected',
  • 'onAnswer',
  • REQUIRED_INFINITY_SIGNAL_KEYS

Type parameters

NameType
Kextends "onError" | "onPinRequired" | "onParticipants"

Parameters

NameTypeDefault valueDescription
moreK[]undefinedKeys from InfinitySignalsOptional,
scopestring''any scope prefix for the generated signal name,

Returns

Pick<Required<InfinitySignals>, SignalKeys>


isGateway

isGateway(serviceType): boolean

Parameters

NameType
serviceTypeCurrentServiceType

Returns

boolean


isMediaPriority

isMediaPriority(e): e is MediaPriority

Parameters

NameType
eunknown

Returns

e is MediaPriority


isReceivingAnyMedia

isReceivingAnyMedia(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isReceivingAudio

isReceivingAudio(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isReceivingVideo

isReceivingVideo(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isSSOdMessage

isSSOdMessage(e): e is SSOdMessage

Parameters

NameType
eunknown

Returns

e is SSOdMessage


isSendingAnyMedia

isSendingAnyMedia(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isSendingAudio

isSendingAudio(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isSendingVideo

isSendingVideo(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isUnidirectionalAudio

isUnidirectionalAudio(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isUnidirectionalVideo

isUnidirectionalVideo(callType): boolean

Parameters

NameType
callTypeClientCallType

Returns

boolean


isWaiting

isWaiting(serviceType): boolean

Parameters

NameType
serviceTypeCurrentServiceType

Returns

boolean


setLogger

setLogger(newLogger): void

Parameters

NameType
newLoggerLogger

Returns

void