Type Alias: GFNConfig#
GFNConfig:
type
GFNConfig
Configuration parameters specific to starting a GFN stream.
Type declaration#
catalogClientId#
catalogClientId:
string
The ID of the catalog client.
clientId#
clientId:
string
The ID of the client application.
cmsId#
cmsId:
number
The CMS ID of the client application.
GFN#
GFN:
any
The GFN instance, which is imported in the calling application’s index.html script block from https://sdk.nvidia.com/gfn/client-sdk/1.x/gfn-client-sdk.js
muteAudio?#
optionalmuteAudio:boolean
Whether or not to start the stream with audio muted.
Default Value#
true
nonce?#
optionalnonce:string
The nonce value used for logging in with nonce.
onCustomEvent()?#
optionalonCustomEvent: (message) =>void
A function that will be called on custom events.
Parameters#
message#
Returns#
void
onStart()#
onStart: (
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
onTerminate()?#
optionalonTerminate: (message) =>void
A function that will be called when the stream is terminated.
Parameters#
message#
Returns#
void
onUpdate()#
onUpdate: (
message) =>void
A function that will be called on update events.
Parameters#
message#
Returns#
void
partnerId?#
optionalpartnerId:string
The partner id. Required if logging in with nonce