Skip to main content

IAsset

Index

Properties

contentExtensionId

contentExtensionId: string

The unique identifier of the content extension used for this asset. Possible values are:

  • @recative/content-extension-video: A video with splitted audio channel file and video file.
  • @recative/content-extension-act-point: An embedded web application that adapted the act protocol.

Developers could find the implementation of different components here.

contentId

contentId: string

The unique identifier of the content to which the asset belongs.

  • For video files, the contentId is the id of the resource file.
  • For act points, the contentId is the fullPath.

createTime

createTime: number

The timestamp when the asset was created.

earlyDestroyOnSwitch

earlyDestroyOnSwitch: boolean

Whether the asset should be destroyed as soon as it is no longer active.

episodeId

episodeId: string

The unique identifier of the episode to which the asset belongs.

extensionConfigurations

extensionConfigurations: Record<string, string>

A record that contains configurations specific to the content extension used for this asset, where the keys are the names of the configuration options and the values are the corresponding values for those options, the value must be string.

For video files, possible values are:

id

id: string

A unique identifier for the asset.

notes

notes: string

Notes or comments about the asset, this value is not used in any code, only for developers.

order

order: number

The order in which the asset should be presented or played.

preloadDisabled

preloadDisabled: boolean

Whether preloading of the asset is disabled or not.

optionaltags

tags?: string | string[]

A string or an array of strings that represents tags or keywords associated with the asset.

optionaltriggers

triggers?: ManagerCoreStateTrigger<unknown>[]

An array of ManagerCoreStateTrigger objects that represent different events that can trigger changes while playing the asset.

updateTime

updateTime: number

The timestamp when the asset was last updated.