Dataprovider

“dataProvider” attribute of player configuration object can be JSON formatted Media Object (described below), or array of Media Objects as a media playlist.

1. Media Object:

Field nameTypeDescription
titlestringMedia asset title.
durationnumberMedia duration in milliseconds.
sourcearrayArray of media source metadata objects (for more details see Media Source Object).
splashImagesarrayArray of splash image metadata objects (for more details see Media Splash Image Object).
mediaLandingPagestringUrl pointing to media landing page.

title

Data type: string

Description: Title of media asset.

"dataProvider": {
    "title": "Tears of steel"
}

duration

Data type: string

Description: Media asset duration time in milliseconds.

"dataProvider": {
    "duration": 734.097415
}

source

Data type: array

Description: Array of media source objects, for more details see Media Source Object

"dataProvider": {
    "source": [
        {
            "contentType": "movie",
            "url": "http://bradmax.com/static/video/tos/440272.mpd",
            "bitrate": 191999,
            "width": 1280,
            "height": 534
        }
    ]
}

splashImages

Data type: array

Description: Array of media splash image objects, for more details see Media Splash Image Object

"splashImages": [
    {
        "url": "http://bradmax.com/static/images/startsplash.jpg",
        "width": 955,
        "height": 397
    }
]

mediaLandingPage

Data type: string

Description: Url pointing to media landing page.

"dataProvider": {
    "mediaLandingPage": "http://bradmax.com"
}

2. Media Source Object:

Field nameTypeDescription
contentTypestringContent type name.
urlstringURL pointing to media asset.
bitratenumberBitrate of media asset.
widthnumberWidth of media asset in pixels.
heightnumberHeight of media asset in pixels.

source contentType

Data type: string

Description: Content type name. Possible values 'movie’, 'trailer’, 'live’.

"dataProvider": {
    "source": [
        {
            "contentType": "movie",
        }
    ]
}

source url

Data type: string

Description: URL pointing to media asset.

"dataProvider": {
    "source": [
        {
            "url": "http://bradmax.com/static/video/tos/440272.mpd",
        }
    ]
}

source bitrate

Data type: number

Description: Bitrate of media asset.

"dataProvider": {
    "source": [
        {
            "bitrate": 191999
        }
    ]
}

source width

Data type: number

Description: Width of media asset in pixels.

"dataProvider": {
    "source": [
        {
            "width": 955
        }
    ]
}

source height

Data type: number

Description: Height of media asset in pixels

"dataProvider": {
    "source": [
        {
            "height": 397
        }
    ]
}

3. Media Splash Image Object:

Field nameTypeDescription
urlstringURL pointing to image asset.
widthnumberWidth of image asset in pixels.
heightnumberHeight of image asset in pixels.

splashImage url

Data type: string

Description: URL pointing to image asset

"dataProvider": {
    "splashImages": [
        {
            "url": "http://bradmax.com/static/images/startsplash.jpg"
        }
    ]
}

splashImage width

Data type: number

Description: Width of image asset in pixels.

"dataProvider": {
    "splashImages": [
        {
            "width": 955
        }
    ]
}

splashImage height

Data type: number

Description: Height of image asset in pixels

"dataProvider": {
    "splashImages": [
        {
            "height": 397
        }
    ]
}