Sample Code

Playing Media in a Client-Server App

Play media items in a client-server app using the built-in media player for TVMLKit JS.

Download

Overview

The TVML frameworks provide several built-in ways to play media items. After loading the initial page, the app automatically plays music in the background. The user navigates between two images and the app loads and plays a video or audio media item after the user selects an image. Both of these media items play using the built-in TVMLJKit JS media player.

See Also

Media Playback

Player

A media player that displays the UI for playing video and audio in an Apple TV client-server app.

Playlist

An array of media items to be played in an Apple TV client-server app.

MediaItem

A single audio or video item.

Slideshow

An object used to display images on Apple TV in a slideshow format.

Browser

An object used to configure and present a browsable full screen view.