Documentation Archive

Developer

Apple TV Markup Language Reference

On This Page

Compound Background Elements

Compound background elements are used to display images behind the rest of the template elements and to play audio in the background of a client-server app page.

audio

The audio element is used to play background audio for a document when the document is the top-most document in the navigation stack. Each document page that plays audio in the background must have its own audio element. If the same URL is used between pages, audio will continue to play when the new page is displayed. The audio element only supports unencrypted audio. audio can contain the following elements:

audio can be a subelement of:

Listing 20-1 shows an example of an audio element.

Listing 20-1audio example TVML
  1. <audio>
  2. <asset />
  3. </audio>

background

The background element is used to display an image or audio in the background of a channel app page. background can contain the following elements:

background can be a subelement of:

Listing 20-2 shows an example of a background element.

Listing 20-2background example TVML
  1. <background>
  2. <img src="" />
  3. <audio>
  4. <asset id="" src="" keyDelivery="" />
  5. </audio>
  6. </background>