does someone know a nice way to display a player with a picture, title and artist name for AppleTV?
I've tried with:
videoURL = ele.getAttribute("videoURL")
if(videoURL) {
var player = new Player();
var playlist = new Playlist();
var mediaItem = new MediaItem("video", videoURL);
player.playlist = playlist;
player.playlist.push(mediaItem);
player.present();
player.play();
}
But nothing appear. Anyone to help?
Headline asking for audio, though you are setting up a
video
mediaItem. Try using theaudio
item, filling the metadata to your liking.See https://developer.apple.com/library/tvos/documentation/TVMLJS/Reference/TVJSMediaItem_Ref/index.html as well.