Interface UplynkAssetInfoResponse

Represents an Uplynk Asset Info Response.


- See Asset Info.

interface UplynkAssetInfoResponse {
    asset: string;
    audio_only: number;
    boundary_details: undefined | Boundary[];
    default_poster_url: string;
    desc: string;
    duration: number;
    error: number;
    external_id: string;
    is_ad: number;
    max_slice: number;
    meta: object;
    movie_rating: UplynkAssetMovieRating;
    owner: string;
    poster_url: string;
    rates: number[];
    rating_flags: number;
    slice_dur: number;
    thumb_prefix: string;
    thumbs: ThumbnailResolution[];
    tv_rating: UplynkAssetTvRating;
}

Properties

asset: string

The identifier of the asset.

audio_only: number

Returns 1 when the asset is audio only.

Valid values are: 0 | 1.

boundary_details: undefined | Boundary[]

List of objects which contain information for the boundaries for the asset.

default_poster_url: string

The default poster URL created for the asset.

desc: string

The description of the asset.

duration: number

The duration of the asset, in seconds.

error: number

Returns 1 when an error occurred with the asset.

Valid values are: 0 | 1.

external_id: string

The identifier of the external source.

is_ad: number

Returns 1 when asset is an ad.

Valid values are: 0 | 1.

max_slice: number

The number of slices available for the asset.

meta: object

The metadata attached to the asset.


- Metadata may be added via the CMS.

The movie rating of the asset, represented by a value from the following list:
- -1: Not Available.
- 0: Not Applicable.
- 1: G.
- 2: PG.
- 3: PG-13.
- 4: R.
- 5: NC-17.
- 6: X.
- 7: Not Rated.

owner: string

The identifier of the owner.

poster_url: string

The poster URL of the asset.

rates: number[]

The available bitrates of the asset.

rating_flags: number

The ratings for the asset, as bitwise flags.

These available flags are the following:

  • D: Drug-related themes are present
  • V: Violence is present
  • S: Sexual situations are present
  • L: Adult Language is present

This number is a bitwise number to indicate if one or more of these values are present.

  • [  ][  ][  ][  ] - 0: No rating flag.
  • [  ][  ][  ][L] - 1: Language flag.
  • [  ][  ][S][  ] - 2: Sex flag.
  • [  ][V][  ][  ] - 4: Violence flag.
  • [D][  ][  ][  ] - 8: Drugs flag.
  • [D][V][S][L] - 15: All flags are on.
slice_dur: number

The average slice duration, in seconds.

thumb_prefix: string

The base URL to the thumbnails.

List of thumbnail resolutions of the asset.

The TV rating of the asset, represented by a value from the following list:
- -1: Not Available.
- 0: Not Rated.
- 1: TV-Y.
- 2: TV-Y7.
- 3: TV-G.
- 4: TV-PG.
- 5: TV-14.
- 6: TV-MA.
- 7: Not Rated.