Documentation Archive

Developer

Apple TV Markup Language Reference

On This Page

Simple Multimedia Elements

Multimedia elements allow the user to stream audio and search for information stored on a server.

asset

The asset element contains information on where an audio or video clip is stored. asset can be a subelement of:

Listing 28-1 shows an example of an asset element.

Listing 28-1asset example TVML
  1. <asset id="" src="" />

relatedContentURL

The relatedContentURL element contains the URL for displayed content. relatedContentURL can be a subelement of:

Listing 28-2 shows an example of a relatedContentURL element.

Listing 28-2relatedContentURL example TVML
  1. <relatedContentURL>http://pathname/website</relatedContentURL>

searchField

The searchField element creates a text field for user input. searchField can be a subelement of:

Listing 28-3 shows an example of a searchField element.

Listing 28-3searchField example TVML
  1. <searchField keyboardTraits="alphanumeric">Search</searchField>

textField

The textField element provides a field for users to enter text. This element is commonly used inside of other elements. textField can be a subelement of:

Listing 28-4 shows an example of a textField element.

Listing 28-4textField example TVML
  1. <textField>Enter longer text here</textField>