Class TokenSourceComponent
- Namespace
- LiveKit
MonoBehaviour wrapper that builds an ITokenSource from an inspector-assigned TokenSourceComponentConfig ScriptableObject. To skip the asset entirely, instantiate TokenSourceLiteral, TokenSourceSandbox, TokenSourceEndpoint, or TokenSourceCustom directly at runtime.
public class TokenSourceComponent : MonoBehaviour
- Inheritance
-
TokenSourceComponent
- Extension Methods
Methods
Awake()
public void Awake()
FetchConnectionDetails()
Fetches connection details using only the values on the asset-backed
TokenSourceComponentConfig. Equivalent to FetchConnectionDetails(null).
public TaskYieldInstruction<ConnectionDetails> FetchConnectionDetails()
Returns
FetchConnectionDetails(TokenSourceFetchOptions)
Fetches connection details, merging per-call options over the asset-backed
TokenSourceComponentConfig. For each field, a value provided on options
overrides the config value (empty strings are treated as unset and fall through to the config).
Ignored for fixed token sources (TokenSourceLiteral, TokenSourceCustom).
public TaskYieldInstruction<ConnectionDetails> FetchConnectionDetails(TokenSourceFetchOptions options)
Parameters
optionsTokenSourceFetchOptions