Settings - Express Capture 2.0
Settings
The runtime's settings object holds your credentials and URLs, the capabilities the user may use, and limits. It is validated when the runtime is created. If a required setting is missing, a setting has the wrong type, or the object has a property not listed on this page, the recorder does not load, and the console shows a validation error such as Unexpected field.
Everything the user can also change in the recorder's settings menu lives in a separate object, recorderConfig. See Recorder Config.
Required
| Property | Type | Description |
|---|---|---|
ks | string | Kaltura Session. Used for uploads and reported with analytics. |
serviceUrl | string | Kaltura API host, without /api_v3, for example https://www.kaltura.com. |
playerUrl | string | Player host used to play the recording back on the review screen, for example https://cdnapisec.kaltura.com. |
partnerId | number | Kaltura partner ID. |
uiConfId | number | Player uiConf ID used for playback. |
Capabilities
Each defaults to true. Set one to false to remove that capability from the recorder's UI.
| Property | Type | Description |
|---|---|---|
allowAudio | boolean | Microphone capture. |
allowVideo | boolean | Camera capture. |
allowScreenShare | boolean | Screen sharing. |
allowSettingsMenu | boolean | The toolbar's three-dot button and the whole settings menu behind it: assistance, mirror preview, orientation, frame rate, format and codec, and audio settings. |
Recording and Upload
| Property | Type | Description |
|---|---|---|
maxRecordingTime | number | Recording limit in seconds. When it is reached, the recording stops exactly as if the user pressed Stop. Time spent paused does not count. |
entryName | string | Name for the created entry. Defaults to a name based on the capture type and time. |
conversionProfileId | number | Transcoding profile for the uploaded entry. Omit it to use the partner's default profile. |
videoConstraints | { width?, height?, frameRate? } | Capture-profile limits, for example for low-bandwidth users. frameRate is used when the user has no saved choice and recorderConfig.frameRate isn't set (default 30). width and height apply only with recorderConfig.hideVideoSettings: true and no recorderConfig.resolution: the largest resolution that fits them is used. See Recorder Config. Coming soon: in production today, all three override the default capture profile of 1920×1080 at 30 fps. |
showUploadUI | boolean | Defaults to true. false hides the recorder's upload progress and done screen, but the upload still runs, silently. Show your own progress instead. See Saving & Uploads. |
Text and Language
| Property | Type | Description |
|---|---|---|
translations | Record<string, string> | Overrides individual UI strings by key. |
browserNotSupportedText | string | Replaces the message shown when the browser cannot record at all. |
Analytics
Omit the analytics block to send no analytics events at all.
| Property | Type | Required | Description |
|---|---|---|---|
analytics.analyticsServiceUrl | string | Yes | Analytics host, with or without a scheme, for example analytics.kaltura.com. No path. |
analytics.hostAppName | number | No | The embedding application's KalturaApplication enum value, so recorder usage can be attributed to it. |
analytics.hostAppVersion | string | No | Version of the embedding application. |
Events carry the ks and partnerId from the settings above, so you don't repeat them here.
Security and Hosting
| Property | Type | Description |
|---|---|---|
scriptsNonce | string | CSP nonce applied to the scripts the recorder injects, such as the player. |
mediapipeAssetBase | string | Base URL for the background-effects model files. Defaults to a Kaltura-hosted path. Set it to serve the files yourself and avoid that external request; the same files ship in the npm package @mediapipe/selfie_segmentation. |
schemaVersion | '1' | Settings schema version. Only '1' is accepted. |
KS Lifetime
The recorder reads its settings once, when it starts. Changing them later with runtime.updateSettings() has no effect yet. Give the recorder a KS that stays valid for the whole session, including the upload: a user may record for a while, review, and only then click Use This. If the KS expires, create the workspace again with a fresh one.