Article

background

Displays an image or plays audio in the background of a channel app page.

Overview

Here's an example that shows adding an image and audio to a background element.

<background>
   <img src="" />
   <audio>
      <asset id="" src="" keyDelivery="" />
   </audio>
</background>

Subelements of background

Elements that Use background

Topics

Valid TVML Styles

background-color

Changes the background color of an element.

color

Changes the color of an element.

Valid TVML Attributes

aspectFill

Stretches an image to fill the containing bounding box.

See Also

Background Elements

audio

Plays background audio for a full-page template when the template is the top-most document in the navigation stack.