Type Alias: DirectConfig#
DirectConfig:
type
Configuration parameters specific to starting a local or remote non-GFN stream.
Type declaration#
accessToken?#
optionalaccessToken:string
The client JWT.
audioElementId?#
optionalaudioElementId:string
The id of the audio element created by the caller for the stream.
Default Value#
'remote-audio'
authenticate?#
optionalauthenticate:boolean
Whether the stream reverse proxy requires a JWT token. This will add the ‘Authorization-Bearer.
Default Value#
false
autoLaunch?#
optionalautoLaunch:boolean
Whether to play the stream automatically on connection.
Default Value#
true
backendUrl?#
optionalbackendUrl:string
AKA Stream API URL. Endpoint for the OVC Stream API. Used to interact with the stream service rather than the stream application. For example, request a new session, terminate a session, etc.
codecList?#
optionalcodecList:string[]
An optional list of explicitly supported codecs, in descending order, according to priority.
connectivityTimeout?#
optionalconnectivityTimeout:number
Defines the stream connection timeout interval (i.e. how long to wait for a connection to be (re)established), in milliseconds.
Default Value#
2000
cursor?#
optionalcursor:"free"|"hardware"|"software"
Default Value#
free
enableAV1Support?#
optionalenableAV1Support:boolean
Enables Av1 support for streaming.
fitStreamResolution?#
optionalfitStreamResolution:boolean
Whether to fit the stream resolution to the video element container. When true, height and width parameters will be used as the maximum height and width of the stream resolution, respectively.
Default Value#
false
forceWSS?#
optionalforceWSS:boolean
Whether to force the use of WSS for the stream connection, even for raw IP addresses and non-standard ports. Note that otherwise, WSS will be used only if the port is 443.
Default Value#
false
fps?#
optionalfps:number
Requested frames per second for stream render.
Default Value#
60
height?#
optionalheight:number
The stream resolution height of the rendering application. NOTE: Client will not be able to request a height larger than the initial height with the resize method. maxValue 4096. @defaultValue 1080.
Default Value#
1080
localizeTextInput?#
optionallocalizeTextInput:boolean
Whether the client wants localized unicode text input sent directly to the server, if supported (requires server built with Kit 108 or above).
Default Value#
true
maxReconnects?#
optionalmaxReconnects:number
Maximum number of reconnects to the stream the client should attempt. Range[0, max_integer].
Default Value#
5
mediaPort?#
optionalmediaPort:number
The port number for the media server.
mediaServer?#
optionalmediaServer:string
URL of the media server to connect the streaming kit app to.
mic?#
optionalmic:boolean
Whether to enable a mic.
Default Value#
false
nativeTouchEvents?#
optionalnativeTouchEvents:boolean
Whether the client should send native touch events or emulate mouse events.
Default Value#
false
newSession?#
optionalnewSession:boolean
Whether to request a new session from the backend URL.
Default Value#
false
nucleus?#
optionalnucleus:string
URL of a nucleus data server to connect the streaming kit app to.
onCustomEvent()?#
optionalonCustomEvent: (message) =>void
A function that will be called for custom events.
Parameters#
message#
Returns#
void
onStart()?#
optionalonStart: (message) =>void
A function that will be called when the stream is started.
Parameters#
message#
Returns#
void
onStop()?#
optionalonStop: (message) =>void
A function that will be called when the stream is stopped.
Parameters#
message#
Returns#
void
onStreamStats()?#
optionalonStreamStats: (message) =>void
A function that will be called by the service to pass stream StreamStats information.
Parameters#
message#
Returns#
void
onTerminate()?#
optionalonTerminate: (message) =>void
A function that will be called when the stream is terminated.
Parameters#
message#
Returns#
void
onUpdate()?#
optionalonUpdate: (message) =>void
A function that will be called on update events.
Parameters#
message#
Returns#
void
reconnectDelay?#
optionalreconnectDelay:number
The delay between reconnection attempts (i.e. how long to wait before attempting to reconnect after a failed connection attempt) in milliseconds.
Default Value#
2000
server?#
optionalserver:string
URL of the streaming service server to connect to.
sessionId?#
optionalsessionId:string
Unique ID for the kit app streaming session. If no value is specified, a new session will be requested.
signalingPath?#
optionalsignalingPath:string
Path for resolving custom NVCF functions.
signalingPort?#
optionalsignalingPort:number
The port number for the signaling server.
Default Value#
48322
signalingQuery?#
optionalsignalingQuery:URLSearchParams
Search params for the signaling server. NOTE that we cannot type this as individual parameters because they will need to be re-definable by library users.
signalingServer?#
optionalsignalingServer:string
URL of the signaling server to connect to.
videoElementId?#
optionalvideoElementId:string
The id of the video element created by the caller for the stream.
Default Value#
'remote-video'
width?#
optionalwidth:number
The stream resolution width of the rendering application. NOTE: Client will not be able to request a width larger than the initial width with the resize method. maxValue 4096. @defaultValue 1920.
Default Value#
1920