Content Schema

Describes the schema for the content, key, and policy for live events.

Schema Definition

<element name="Content">
<complexType>
<attribute name="AccountId" type="string"/>
<attribute name="ChannelId" type="string"/>
<attribute name="ItemId" type="string"/>
<attribute name="Type" type="string" occurs="optional"/>
<attribute name="MediaType" type="string" occurs="optional"/>
<attribute name="SourceId" type="string" occurs="optional"/>
<attribute name="PGRating" type="string" occurs="optional"/>
<attribute name="Category" type="string" occurs="optional"/>
<attribute name="PackageId" type="string" occurs="optional"/>
<attribute name="FileSize" type="number" occurs="optional"/>
<attribute name="PolicyId" type="string" occurs="optional"/>
<attribute name="Name" type="string" occurs="optional"/>
<attribute name="Artist" type="string" occurs="optional"/>
<attribute name="Description" type="HTML encoded" occurs="optional"/>
<attribute name="LongDescription" type="HTML encoded" occurs="optional"/>
<attribute name="Search" type="string" occurs="optional"/>
<attribute name="Length" type="iso8601" occurs="optional"/>
<attribute name="ReleaseDate" type="iso8601" occurs="optional"/>
<attribute name="ReleaseEnd" type="iso8601" occurs="optional"/>
<attribute name="MediaNumber" type="number" occurs="optional"/>
<string> <!-- optional data -->
</complexType>
</Element>

<element name="Key">
<complexType>
<attribute name="KeyId" type="string" />
<attribute name="AccountId" type="string" />
<attribute name="ChannelId" type="string" />
<attribute name="ItemId" type="string" />
<attribute name="Key" type="string" occurs="optional"/>
<attribute name="PubKey" type="string" occurs="optional"/>
<attribute name="AllowClearKey" type="boolean" occurs="optional"/>
<attribute name="Base64" type="boolean" occurs="optional"/>
</complexType>
</element>

<element name="Policy">
<complexType>
<attribute name="AccountId" type="string" />
<attribute name="PolicyId" type="string" />
<attribute name="Name" type="string" occurs="optional"/>
</complexType>
</element>

<element name="Batch">
<element name="Content" occurs="optional" />
<element name="Key" occurs="optional" />
<element name="Policy" occurs="optional" />
</element>

Schema Attribute Description

Attribute Name

Description

Type

Default

Required

Content element

AccountId

Unique identifier of the content provider.

String

n/a

Yes

ChannelId

Unique identifier of the channel associated with the media asset.

String

n/a

Yes

ItemId

Identifier for the media asset.

String

n/a

Yes

Type

Specifies the content type. This can be set to anything. Special handling occurs for the following values: MEDIA, CHANNEL PACKAGE, or TIME.

String

n/a

No

MediaType

Only necessary if Type=MEDIA. For media asset only.

String

n/a

No

SourceId

Unique identifier of the content owner.

String

n/a

No

PGRating

MPAA rating of the media asset.

String

n/a

No

Category

Category of the media asset.

String

n/a

No

PackageId

Identifier of the package associated with the media asset

String

n/a

No

FileSize

Size of the media asset file in bytes

Number

n/a

No

PolicyId

Unique identifier of the policy that controls the media asset distribution.

String

n/a

No

Name

Name of the media asset.

String

n/a

No

Artist

Name of the artist (actor, vocalist, musician) associated with the media asset.

String

n/a

No

Description

Brief description of the media asset.

HTML encoded

n/a

No

LongDescription

Detailed description of the media asset.

HTML encoded

n/a

No

Search

Comma-separated list of keywords to be compared to keywords entered into a search utility.

String

n/a

No

Length

Time it takes to play the media asset.

ISO 8601

n/a

No

ReleaseDate

Date and time the media asset becomes available.

ISO 8601

n/a

No

ReleaseEnd

Last day the media asset is available.

ISO 8601

n/a

No

MediaNumber

Numeric identifier for the media asset.

Number

n/a

No

Key element

KeyId

Identifier of the encryption key.

String

n/a

Yes

AccountId

Unique identifier of the content provider.

String

n/a

Yes

ChannelId

Unique identifier of the channel.

String

n/a

Yes

ItemId

Identifier for the media asset.

String

n/a

Yes

Key

Encryption key

String

n/a

No

PubKey

Public key

String

n/a

No

AllowClearKey

Flag that indicates whether to allow the key to be transmitted as clear text.

Boolean

n/a

No

Base64

Flag that indicates whether to use Base64 encoding for the key.

Boolean

n/a

No

Policy element

AccountId

Unique identifier of the content provider.

String

n/a

Yes

PolicyId

Unique identifier for the policy that controls the media asset distribution.

String

n/a

Yes

Name

Name of the policy.

String

n/a

No

See Also

Live Encryption

Certificate Schema

LicenseUrl Schema