Type Alias: DirectConfig#
DirectConfig =
DirectQueryProps&object
Configuration parameters specific to starting a local or remote non-GFN stream.
Type declaration#
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.
Default Value#
false
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, in milliseconds.
Default Value#
2000
enableAV1Support?#
optionalenableAV1Support:boolean
Enables Av1 support for streaming.
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
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
onCustomEvent()?#
optionalonCustomEvent: (message) =>void
A function that will be called for custom events.
Parameters#
message#
any
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
videoElementId?#
optionalvideoElementId:string
The id of the video element created by the caller for the stream.
Default Value#
'remote-video'