Skip to main content

VideoData

What's the VideoData?​

The VideoData is an object that provides essential information about a video stored in DIVA BO, including metadata, playback settings, and additional configurations.

All VideoData fields​

PropertyTypeDefaultDescriptionExample
videoIdstring""Unique identifier for the video"video123"
titlestring""Title of the video"Sample Video"
descriptionstring""Description of the video"This is a sample video."
imagestring""URL of the video thumbnail"https://example.com/image.jpg"
eventEventBoEvent associated with the video
kindstring""Type of the video"live"
prerollstring""URL of the preroll ad
programDateTimenumber0Program date and time in milliseconds1680000000000
trimInnumber0Client-side trimming start in milliseconds0
trimOutnumber0Client-side trimming end in milliseconds60000
expectedDurationnumber0Expected duration of the video in milliseconds60000
assetStatestring""State of the video asset"available"
isMultistreambooleanfalseIndicates if the video has multiple streamsfalse
is360booleanfalseIndicates if the video is a 360-degree videofalse
mode360Mode360""Mode of the 360-degree video"monoscopic360"
isPrivatebooleanfalseIndicates if the video is privatefalse
thirdPartyContentProvideranyThird-party content provider information
audioTracksarray of AudioTrackBo[]List of audio tracks
categoriesRecord<string, unknown>Categories associated with the video
customAttributesCustomAttributesBoCustom attributes for the video
capabilitiesCapabilitiesBoCapabilities of the video
livelikeLivelikeBoLivelike configuration
sourcesarray of SourceBo[]List of video sources
tagsTagTags associated with the video

Types​

AudioTrackBo​

PropertyTypeDescriptionExample
idstringUnique identifier for the audio track"audio1"
displayNamestringDisplay name of the audio track"English"

EventBo​

PropertyTypeDescriptionExample
idstringUnique identifier for the event"event123"

Tag​

PropertyTypeDescriptionExample
externalSourcestringExternal source of the tag"source1"
externalIdstringExternal identifier of the tag"tag123"

Mode360​

ValueDescription
monoscopic360Monoscopic 360-degree video
updown360Up-down 360-degree video

LivelikeBo​

PropertyTypeDescriptionExample
programIdanyProgram ID for Livelike"program123"

CapabilitiesBo​

PropertyTypeDescriptionExample
scorebooleanIndicates if scoring is enabledtrue
alternateCommentarybooleanIndicates if alternate commentary is availablefalse
commentarybooleanIndicates if commentary is availabletrue
chaptersbooleanIndicates if chapters are availabletrue
timelinebooleanIndicates if timeline is availabletrue
multicambooleanIndicates if multicam is supportedfalse
multicam360booleanIndicates if 360-degree multicam is supportedfalse
dataPanelsbooleanIndicates if data panels are availabletrue
ccbooleanIndicates if closed captions are availabletrue
xRaybooleanIndicates if x-ray functionality is availablefalse
relevantCommentarybooleanIndicates if relevant commentary is availabletrue
snapStatsbooleanIndicates if snap stats are availabletrue
titlebooleanIndicates if title functionality is availabletrue
userAudioSelectionbooleanIndicates if user audio selection is availabletrue
videoQualitybooleanIndicates if video quality selection is availabletrue
vrbooleanIndicates if VR functionality is availablefalse
wallclockbooleanIndicates if wallclock functionality is availabletrue

CustomAttributesBo​

PropertyTypeDescriptionExample
v_video_providerstringVideo provider"provider1"
v_available_display_start_datestringAvailable display start date"2025-01-01"
v_available_display_end_datestringAvailable display end date"2025-12-31"
...stringAdditional custom attributes

SourceBo​

PropertyTypeDescriptionExample
uristringURI of the video source"https://example.com/video.m3u8"
formatstringFormat of the video source (e.g., HLS, DASH)"HLS"
namestringName of the video source"Main Source"
originstringOrigin of the video source"origin1"
drmDrmBoDRM configuration for the video source
daiTypestringDAI type for the video source"googleLive"
hdrTypestringHDR type for the video source"HDR10"
dvrTypestringDVR type for the video source"full"
offsetnumberOffset for the video source in milliseconds0
timeMaparray of TimeMapBoTime map for the video source

DrmBo​

PropertyTypeDescriptionExample
[drmType]DrmDataBoDRM data for the specified DRM type

DrmDataBo​

PropertyTypeDescriptionExample
enabledbooleanIndicates if DRM is enabledtrue
authTypestringAuthentication type for DRM"token"
contentKeyDatastringContent key data for DRM"key123"
licenseUrlstringLicense URL for DRM"https://example.com/license"
providerstringDRM provider"provider1"
tokenstringDRM token"token123"

TimeMapBo​

PropertyTypeDescriptionExample
startnumberStart time of the time map in milliseconds0
endnumberEnd time of the time map in milliseconds60000
offsetnumberOffset for the time map in milliseconds0

Sample​

Here is an example of a VideoData object:

{
"videoId": "video123",
"title": "Sample Video",
"description": "This is a sample video.",
"image": "https://example.com/image.jpg",
"event": {
"id": "event123"
},
"kind": "live",
"preroll": "https://example.com/preroll.mp4",
"programDateTime": 1680000000000,
"trimIn": 0,
"trimOut": 60000,
"expectedDuration": 60000,
"assetState": "available",
"isMultistream": false,
"is360": false,
"mode360": "monoscopic360",
"isPrivate": false,
"thirdPartyContentProvider": null,
"audioTracks": [
{
"id": "audio1",
"displayName": "English"
}
],
"categories": {
"genre": "sports"
},
"customAttributes": {
"v_video_provider": "provider1",
"v_available_display_start_date": "2025-01-01",
"v_available_display_end_date": "2025-12-31"
},
"capabilities": {
"score": true,
"alternateCommentary": false,
"commentary": true
},
"livelike": {
"programId": "program123"
},
"sources": [
{
"uri": "https://example.com/video.m3u8",
"format": "HLS",
"name": "Main Source",
"origin": "origin1",
"drm": {
"widevine": {
"enabled": true,
"licenseUrl": "https://example.com/license"
}
}
}
],
"tags": {
"externalSource": "source1",
"externalId": "tag123"
}
}