MediaStoreRecorderSettings interface

Settings to configure a media store recorder see NorskMediaStore.recorder()

Signature:

export interface MediaStoreRecorderSettings extends SinkNodeSettings<MediaStoreRecorderNode>, StreamStatisticsMixin

Properties

Property Type Description

audioFragmentDurationSeconds?

number

(Optional) Optional: Target duration, in seconds, of the audio fragments the store records. The video fragments are GOP-driven and unaffected. Because a reader needs both audio and video to play near the live edge, the coarsest fragment size sets the floor on how far behind live it must sit, so a smaller value here lowers achievable latency at the cost of more, smaller objects. Omit (or 0) to keep the 11s default; sub-second values are honoured.

chunkFileDurationSeconds

number

Required: Duration of the media store chunk files

expiry?

MediaStoreExpiry

(Optional) Optional: Expiry settings - if not supplied, then data will not get expired so on long-running events you may exhaust available disk space

name

string

Required: Name of this media store instance.

onInitialised?

() ⇒ void

(Optional) Optional: Called when the media store is fully initialised. Note that subscriptions can take place when the onCreate event is fired, just like all other nodes

path

string

Required: Path for the media store database.

remoteReplication?

MediaStoreRemoteReplication

(Optional) Optional: Replicate recorded segments to a remote object store as an asynchronous background process. When set, each replicated segment’s remote URL is added to the TAMS get_urls. Does not block recording.