Skip to main content
View as Markdown

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​

PropertyTypeDescription
ksstringKaltura Session. Used for uploads and reported with analytics.
serviceUrlstringKaltura API host, without /api_v3, for example https://www.kaltura.com.
playerUrlstringPlayer host used to play the recording back on the review screen, for example https://cdnapisec.kaltura.com.
partnerIdnumberKaltura partner ID.
uiConfIdnumberPlayer uiConf ID used for playback.

Capabilities​

Each defaults to true. Set one to false to remove that capability from the recorder's UI.

PropertyTypeDescription
allowAudiobooleanMicrophone capture.
allowVideobooleanCamera capture.
allowScreenSharebooleanScreen sharing.
allowSettingsMenubooleanThe 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​

PropertyTypeDescription
maxRecordingTimenumberRecording limit in seconds. When it is reached, the recording stops exactly as if the user pressed Stop. Time spent paused does not count.
entryNamestringName for the created entry. Defaults to a name based on the capture type and time.
conversionProfileIdnumberTranscoding 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.
showUploadUIbooleanDefaults 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​

PropertyTypeDescription
translationsRecord<string, string>Overrides individual UI strings by key.
browserNotSupportedTextstringReplaces the message shown when the browser cannot record at all.

Analytics​

Omit the analytics block to send no analytics events at all.

PropertyTypeRequiredDescription
analytics.analyticsServiceUrlstringYesAnalytics host, with or without a scheme, for example analytics.kaltura.com. No path.
analytics.hostAppNamenumberNoThe embedding application's KalturaApplication enum value, so recorder usage can be attributed to it.
analytics.hostAppVersionstringNoVersion of the embedding application.

Events carry the ks and partnerId from the settings above, so you don't repeat them here.

Security and Hosting​

PropertyTypeDescription
scriptsNoncestringCSP nonce applied to the scripts the recorder injects, such as the player.
mediapipeAssetBasestringBase 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.