---
title: Examples
url: https://docs.kaltura.com/docs/embeddable-kaltura-products/express-capture/examples
---

## Examples

Complete settings objects that can be dropped into the [Getting Started](/docs/embeddable-kaltura-products/express-capture/getting-started) example. Replace the `settings` passed for the `recorder` runtime with one of these.

### Video Message with a Script

A portrait camera recording with the teleprompter pre-filled, guidance overlays on, and a two-minute limit. Screen sharing is off.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  entryName: 'Welcome message',
  allowScreenShare: false,
  maxRecordingTime: 120,
  recorderConfig: {
    orientation: 'portrait',
    prompterText: 'Hi everyone, and welcome to the team...',
    framingAssistance: true,
    lightingAssistance: true,
    audioLevelFeedback: true,
  },
}
```

Size the container for portrait, for example `width: 450px; height: 800px`.

### Re-record an Existing Entry

Replace the media of an entry that already exists, for example when a user redoes their submission. The entry keeps its ID, metadata and categories.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  recorderConfig: {
    saveMode: 'kaltura',
    entryId: '1_abc123',
  },
}
```

### Record Without Uploading

Keep the recording in your page and send it to your own storage. Nothing is uploaded to Kaltura.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  recorderConfig: {
    saveMode: 'non_kaltura',
  },
}
```

```js
runtime.onUseThisSelected.on(async ({ cameraBlob, screenBlob, fileName, mimeType }) => {
  const blob = screenBlob ?? cameraBlob;
  await fetch('/my-upload-endpoint', {
    method: 'POST',
    headers: { 'Content-Type': mimeType, 'X-File-Name': fileName },
    body: blob,
  });
});
```

### Audio-Only Recording

Microphone only, with noise suppression and the level meter on. The settings menu is removed.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  allowVideo: false,
  allowScreenShare: false,
  allowSettingsMenu: false,
  recorderConfig: {
    noiseSuppression: true,
    audioLevelFeedback: true,
  },
}
```

### Screen Recording Uploaded as One Video

A screen recording with the microphone and no camera, so it uploads as a single entry. The upload UI is hidden, so the page shows its own progress.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  allowVideo: false,
  showUploadUI: false,
}
```

```js
runtime.onUseThisSelected.on(() => showSpinner('Uploading…'));
runtime.onUploadComplete.on((payload) => {
  const [entry] = payload.entries ?? [payload];
  showDone(entry.entryId);
});
```

`payload.entries ?? [payload]` handles both the current and the coming event shape; see [Upload Results](/docs/embeddable-kaltura-products/express-capture/events#upload-results).

With the camera on, a screen share uploads two entries instead. See [Screen Sharing](/docs/embeddable-kaltura-products/express-capture/screen-sharing).

### A Script from Your Organization

A teleprompter script the user can read but not change. The teleprompter opens automatically because a script is supplied.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  recorderConfig: {
    prompterText: 'Welcome to Acme. In this message I will walk you through...',
    prompterTextLocked: true,
  },
}
```

`prompterTextLocked`, and opening the teleprompter automatically, are *coming soon*. See [Recorder Config](/docs/embeddable-kaltura-products/express-capture/recorder-config#teleprompter).

### Branded Backgrounds

Offer only your brand's background images, from a Kaltura category, with no built-in images and no uploads.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  recorderConfig: {
    backgroundCategoryId: 40693452,
    allowBackgroundUpload: false,
  },
}
```

The KS must be able to list the category's entries. These properties are *coming soon*. See [Recorder Config](/docs/embeddable-kaltura-products/express-capture/recorder-config#backgrounds).

### Fixed Video Profile

Record every submission in the same format, for example for a platform that only plays MP4 at 720p. The resolution, frame rate and format controls are removed.

```js
settings: {
  ks, partnerId, uiConfId,
  serviceUrl: 'https://www.kaltura.com',
  playerUrl: 'https://cdnapisec.kaltura.com',
  recorderConfig: {
    hideVideoSettings: true,
    resolution: 'HD',
    frameRate: 30,
    videoFormat: 'mp4-h264',
  },
}
```

If the camera or browser can't deliver part of the profile, the recorder silently uses the closest it can. These properties are *coming soon*. See [Recorder Config](/docs/embeddable-kaltura-products/express-capture/recorder-config#fixed-video-profile).

### Your Own Record Button

Drive recording from your page's controls with the runtime methods, and keep them in sync with `isRecording`:

```html
<button id="start">Start</button>
<button id="stop" disabled>Stop</button>
```

```js
const start = document.getElementById('start');
const stop = document.getElementById('stop');

start.addEventListener('click', () => runtime.startRecording());
stop.addEventListener('click', () => runtime.stopRecording());

runtime.isRecording.onChanges((recording) => {
  start.disabled = recording;
  stop.disabled = !recording;
});
```
