Skip to content

YouTube

Wesley De Groot edited this page Nov 22, 2015 · 6 revisions

YouTube (Beta)

Example:

evaluateScripts(['https://wdg.github.io/tvOS.js/tvOS.js'], function (success) {
  if (success) {
    tvOS.loadYouTubeVideo('JfG__VEF2yg', function (video) {
      var player = new Player()
      var playlist = new Playlist()
      var mediaItem = new MediaItem('video', video)
      player.playlist = playlist
      player.playlist.push(mediaItem)
      player.present()
    })
  } else {
    console.log('Missing required files!')
  }
})

Discussion & Issues:

Please see: This (Open issues: 1)