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.



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


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


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


A single audio or video item.


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


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