Since Web Kit cant be used to distribute Apple TV application, I was searching through alternate ways to display web content in Apple TV app. Using TVML I could play video source from a web site from Apple TV app. My doubt is that can I display a web site by providing the link as like the UIWebView does!
I have already a developed web site with me and need to have a TV app version also. Is it possible ?
The following code works for me, and it loaded a video from a URL.
var player = new Player();
var playlist = new Playlist();
var mediaItem = new MediaItem("video", videoURL);
player.playlist = playlist;
player.playlist.push(mediaItem);
player.present();