Questions tagged [tvjs]

The TVJS framework is a set of JavaScript APIs for creating client-server apps using TVMLKit

About

The TVJS framework provides you with the means to display client-server apps created with the Apple TV Markup Language (TVML) on the new Apple TV. You use other classes in the framework to stream media and respond to events.

Links

Website

68 questions
17
votes
4 answers

send a cookie with XMLHTTPRequest (TVMLJS)

I am developing an application for my AppleTV. The App will read movies from an online website that hasn't developed any API for this kind of thing. I use XMLHTTPRequest to get the different URLs and have the user search for his movie, etc...…
Scaum
  • 353
  • 1
  • 2
  • 9
11
votes
3 answers

Uglification failed. Unexpected character '`'

gulp-uglify is unable to uglify this piece of code: var alertString = ` ${title}
sailens
  • 1,594
  • 1
  • 17
  • 34
9
votes
1 answer

Generate the Dominant Colors for an RGB image with XMLHttpRequest

A Note For Readers: This is a long question, but it needs a background to understand the question asked. The color quantization technique is commonly used to get the dominant colors of an image. One of the well-known libraries that do color…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
4
votes
0 answers

Apple TVJS showsPlaybackControls

I need to loop a video in an Apple TV app, and I really would prefer to use TVJS so that we can update easily server side. However, when I loop the video, it shows the playback controls every time, and this is not ideal. I see that…
Ben Simmons
  • 230
  • 1
  • 13
4
votes
1 answer

TVML-TVOS Render more then 1 Template together

I have recently started working with TVML/TVJS and am not sure how to proceed with the below issue. The issue on hand is to use multiple Templates on the same page while rendering the page i.e. I want want to add the MenuBarTemplate over the…
4
votes
1 answer

TVML custom template

I'm building a sort of webshop for Apple TV with tvOS, which I'm very new at! I was wondering, can you write you're own template in xml or are you stuck with the default templates apple is providing? Maybe it is possible for combining different…
Steaphann
  • 2,797
  • 6
  • 50
  • 109
4
votes
1 answer

Can you host TVJS files on the Apple TV instead of an external server?

I've downloaded the TVMLCatalog application from Apple. The code is split up into 2 parts. client - this holds the TVML and TVJS files TVMLCatalog Project - this is the basic Xcode project that sets up the TVML/TVJS I'm attempting to host the…
shirefriendship
  • 1,293
  • 8
  • 18
3
votes
0 answers

Apple TV TVML Video Loop

In html5 there is a simple way to loop a video. See here. I want to know if something like this exists for Apple TV's TVJS and TVML. I can get it to loop in the javascript like this: if(videoURL && event.type === "select") { var player = new…
Ben Simmons
  • 230
  • 1
  • 13
3
votes
1 answer

Change User-Agent for XMLHttpRequest in TVML app

I'm working on an Apple TV app using TVMLKit. My app's JavaScript code tries to send an HTTP request to a server using XMLHttpRequest. The server is expecting a specific user agent, so I tried this: var request = new…
WetFish
  • 1,172
  • 2
  • 11
  • 21
2
votes
0 answers

StoreKit in TVMLKit

I am trying to find really any resources that show me how to either bridge StoreKit to tvJS and actually use it, or a sane way to pass the data back and forth from Swift to tvJS. I already have SKProducts being populated in Swift and the bridge…
Ben Simmons
  • 230
  • 1
  • 13
2
votes
1 answer

tvOS: Call into JavaScript from Swift for TVML app

I know calling into Swift code can be done from JavaScript (Call Swift code from an Apple TV TVML TVJS JavaScript App) but I'm wondering if the reverse is true? Basically I have a long running asynchronous Swift function that will be made when the…
StackJP
  • 1,450
  • 2
  • 16
  • 32
2
votes
0 answers

Native AVPlayerViewController called from JavaScript causing autolayout modification from background thread

I am building a TVML/TVJS Apple TV app, but i need to be able to get some native functionality with the player, so I am using evaluateAppJavaScriptInContext to create a JavaScript function that will push a custom view controller to the screen when…
Ben Simmons
  • 230
  • 1
  • 13
2
votes
0 answers

Putting my JSON data into my XML templates for a TVOS TVML app

I have completed a few tutorials for developing apple TV apps and I am able to successfully get and parse JSON no problem and display it in an xml template made within the Js file. I have also made an app using the menu bar to navigate through…
OThatSean
  • 31
  • 4
2
votes
2 answers

How to add a placeholder image in img tag in TVML?

Hi I am new a t TVML just want to know how can you load an image in a URL and to have a placeholder image while waiting for the URL. I'm using the img tag. Let me know thanks.
objectiveCarlo
  • 372
  • 2
  • 16
2
votes
1 answer

TVML Creating Dynamic Templates

Is it possible to create dynamic templates/pages with TVML without relying on Apple's standard templates? Say I'd like to create a template that has 2 images next to each other and on top of these images a couple of textfields that I want to…
Placeable
  • 589
  • 8
  • 22
1
2 3 4 5