Questions tagged [apple-tv]

Apple TV is a digital media receiver developed and sold by Apple. This tag is for questions related to developing applications for Apple TV. For non-programming questions or for general usage of Apple TVs, they are off-topic. See https://apple.stackexchange.com/help/on-topic.

apple-tv
Filter by
Sorted by
Tagged with
66 votes
9 answers
34k views

How to extend iOS app to tvOS

I have an iOS app that I need to extend to tvOS. All the information that I found are explaining how to start from scratch! Is there any way to extend my app to tvOS or I should start a new project ...
BlackM's user avatar
  • 3,975
27 votes
6 answers
21k views

Web app in tvOS

Apple has released it's SDK for apple tv yesterday. Most apps for TVs are web based (html, javascript and css) and I would like to port an existing tv web app to the tvOS. The SDK in Xcode shows no ...
Marcio Oliveira's user avatar
26 votes
1 answer
1k views

Custom fonts in a tvOS TVML app

Is there a way to use custom fonts in an Apple tvOS TVML based application? I've tried the @font-face at-rule to no avail. <document> <head> <style> @font-face { ...
Aodh's user avatar
  • 672
25 votes
6 answers
24k views

How do I play a video on tvOS for Apple TV?

I started a blank tvOS project and created the following code: - (void)viewDidLoad { [super viewDidLoad]; AVPlayer *avPlayer = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://www....
Ethan Allen's user avatar
  • 14.6k
25 votes
1 answer
1k views

tvOS: Is there anyway to prevent the search keyboard from collapsing on scroll?

So I have a standard setup for setting up a search view in my tvOS app. let storyboard = UIStoryboard(name: "Main", bundle: nil) guard let resultsController = storyboard....
Programmer Unextraordinair's user avatar
21 votes
4 answers
5k views

Use iPhone as a game controller in a tvOS app?

During the Apple TV announcement, the developers of Crossy Road demonstrated using an iPhone as a 2nd controller for an Apple tv game: http://www.macrumors.com/2015/09/09/cooperative-play-for-crossy-...
AaronBaker's user avatar
  • 1,033
18 votes
4 answers
5k views

Can I mix UIKit and TVMLKit within one app?

I'm exploring tvOS and I found that Apple offers nice set of templates written using TVML. I'd like to know if a tvOS app that utilises TVML templates can also use UIKit. Can I mix UIKit and TVMLKit ...
Rafał Sroka's user avatar
  • 39.9k
17 votes
3 answers
19k views

AVPlayer with playback controls of avplayerviewcontroller

I am putting n avplayer inside of a view controller to customize some other elements of the view controller but I still want the playback and scrubbing controls used in AVPlayerViewController. Is ...
tnek316's user avatar
  • 640
17 votes
3 answers
5k views

TVML vs Custom App for Apple TVOS

Are there any advantage of using TVML over custom App (media based App not a game) for Apple TVOS? From what I read from Apple's documentation I could not figure out any such advantage (though it ...
msk's user avatar
  • 8,895
17 votes
4 answers
13k views

Has anyone reversed engineered the protocol used by Apple's iOS Remote app for controlling an Apple TV over IP?

I'm curious if it's possible for me to write programs that can control an Apple TV, specifically an Apple TV 4th gen running tvOS 9.1.1, like Apple's Remote app for iOS can. I'd like to send it ...
Bri Bri's user avatar
  • 2,183
14 votes
5 answers
4k views

UICollectionViewCell to UIButton Focus in tvOS

I have a UICollectionView which contains 12-13 UICollectionViewCells. I can easily focus on the UICollectionViewCells and everything works. There is a UIButton outside the UICollectionView. If I am on ...
john doe's user avatar
  • 9,416
14 votes
2 answers
1k views

Removing sandbox accounts from tvOS 13

I have been developing a tvOS app that uses in-app purchasing. As part of the development process, the app must be tested using iTunes sandbox user accounts. When beginning the in-app purchase using a ...
picciano's user avatar
  • 22.5k
13 votes
12 answers
17k views

Xcode stuck on copying cache files from device tvOS

I've been trying to connect my Apple TV with Xcode and it got stuck on copying cache files from device. It was connecting before as usual but suddenly it stopped. Version Information Apple TV : tvOS ...
Jay Savsani's user avatar
13 votes
1 answer
3k views

Airplay, Apple TV and Remote Events - is it only for streaming audio/video?

My iPad app presents a second UI to an Apple TV using the techniques discussed here - that is, be detecting and drawing to a UIScreen that represents the Apple TV: http://developer.apple.com/library/...
Rob Reuss's user avatar
  • 1,400
11 votes
1 answer
3k views

How do you update the Apple TV Developer Kit? tvOS software not available via iTunes

I was the lucky winner of an Apple TV Developer Kit, and received it today. When I plug the device into my TV, I am directed to first plug it in to a Mac with iTunes. However, when I try to Restore ...
pkamb's user avatar
  • 34.2k
11 votes
2 answers
8k views

YUV to RGBA on Apple A4, should I use shaders or NEON?

I'm writing media player framework for Apple TV, using OpenGL ES and ffmpeg. Conversion to RGBA is required for rendering on OpenGL ES, soft convert using swscale is unbearably slow, so using ...
pawlowski's user avatar
  • 123
11 votes
1 answer
373 views

How to reduce cutoff when playing audio using airplay?

When playing a sound from an iOS device connected to Apple TV via AirPlay (using iOS9.2), the first second or so of the sound playing is cut off. This unwanted behavior is not app specific, but system ...
echo's user avatar
  • 1,264
10 votes
3 answers
8k views

Using Firebase with tvOS

When I try to use the Firebase framework with tvOS (via cocoapods) I get the following error: Target 'Pods-Portal TV' of project 'Pods' was rejected as an implicit dependency for 'Pods_Portal_TV....
Chris's user avatar
  • 7,990
10 votes
6 answers
3k views

Apple TV App not exiting to the home screen from initial view controller when menu button pressed on remote

I've just had an Apple TV app rejected because of 'In addition, the Menu button on the Siri Remote does not behave as expected in your app. Specifically, when the user launches the app and taps the ...
Mark Bridges's user avatar
  • 8,368
10 votes
3 answers
7k views

Disable AirPlay with MPMoviePlayerController

I have an instance of a MPMoviePlayerController which is being used to display some live streaming video on an iPhone app. This is working fine, however I wish to remove all AirPlay functionality. To ...
Ben Williams's user avatar
  • 4,705
10 votes
2 answers
3k views

How to create a UIButton for tvOS with a clear background color?

I'm trying to create a UIButton of System type with a clear background color. The problem is that it shows a gray background color even if I set it to clearColor. I can do it with a Custom type ...
gutenbergn's user avatar
10 votes
1 answer
338 views

How to tell Siri Remote button presses and gamepad button presses apart?

I wrote an override for pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) on my ViewController. open override func pressesBegan(_ presses: Set<UIPress>, with event: ...
Lynn's user avatar
  • 10.6k
9 votes
1 answer
7k views

How to connect Apple TV with Mac for development?

What kind of cable do I need to connect to the Apple TV with my Mac to deploy the app using lightning cable - like I do with iPhone. In the keynote presentation it looks like it's lightning port: And ...
Rafał Sroka's user avatar
  • 39.9k
9 votes
3 answers
5k views

How to disable non-1st Audio Streams/Tracks in FFmpeg for mp4 files

My end goal is to create a single FFmpeg command that will convert my h264.DTS.mkv files to a format that is compatible with my AppleTV, whilst preserving the original quality. I'm almost there, ...
Dipesh's user avatar
  • 1,293
9 votes
1 answer
8k views

Integrating AirPlay to iOS app in Swift

I want to cast a radio stream through AirPlay (to an AppleTV). I've researched a lot related to this topic, but I found the documentation really poor. This is the Apple documentation for AirPlay 2: ...
anitteb's user avatar
  • 762
9 votes
2 answers
7k views

Apple TV not showing up in Xcode > devices & simulators menu

I have an Apple TV 4k model. It is connected to a display and is powered on. Here are the steps I have tried to connect Apple TV to Xcode: use same wifi on both mac and Apple TV on Apple TV go to ...
as diu's user avatar
  • 1,050
8 votes
2 answers
4k views

Can't focus UICollectionViewCell inside UITableViewCell

so I am exploring the new tvOS. As I wanted to kind of replicate the horizontal feature section of the app store (e.g. "Best New Apps") My plan was to use a UITableView to lay out the base structure (...
danielreiser's user avatar
  • 5,320
8 votes
6 answers
6k views

indexPathForPreferredFocusedView is not being Called

I need to specify which cell should receive focus. According to Apple Documentation the indexPathForPreferredFocusedView delegate method should be called if the remembersLastFocusedIndexPath property ...
Aymen HARRATH's user avatar
8 votes
1 answer
5k views

Display one thing on iPad and another on Apple Tv?

I have an app idea, but I'm not sure if it's possible. I was wondering if I'm able to display one thing on the iPad ( or iPhone ) screen, and something totally different on the Apple Tv at the same ...
Chris Young's user avatar
8 votes
5 answers
7k views

Developing applications for Apple TV

I am an iPhone developer interested in developing applications for Apple TV. Does Apple provide a SDK for the Apple TV? If I can develop for the Apple TV how do I install the SDK on my Apple TV?
mmj's user avatar
  • 97
8 votes
2 answers
15k views

Feeding my own videos to Apple TV screensaver

On the 4th gen Apple TV you can select a custom json file URL to load screensaver movies other than the apple ones. For that you have to go into settings, move to about, while on about, click Play/...
Balthasar's user avatar
  • 1,227
8 votes
1 answer
4k views

Airplay from iPad - a separate UIView to display on Apple TV

I want to use Airplay to send images in high definition to a Apple TV. Airplay works fine on my iPad 2 with iOS 5.0.1. When I start my app, my UIScreen screens array only has 1 item in it. (the iPad ...
bandejapaisa's user avatar
  • 26.7k
8 votes
3 answers
2k views

Detecting when an Apple TV 4th generation has woken from sleep

I'm working on some home automation programs and one of the things I want to be able to do is detect when my 4th generation Apple TV has woken from sleep. This will generally only ever happen when ...
Bri Bri's user avatar
  • 2,183
8 votes
1 answer
399 views

Get Siri Remote orientation (or get notifications of change?)

I'm been searching for a way to check the Siri Remote's current orientation or to register for Siri Remote orientation changes, but I haven't found anything yet. Is it possible to do this (without ...
Rusty Moyher's user avatar
8 votes
3 answers
2k views

Custom focus engine behaviour for UICollectionView

I use a standard UICollectionView with sections. My cells are laid out like a grid. The next cell in a chosen direction is correctly focused if the user moves the focus around with the Apple TV remote....
Stefan Arn's user avatar
  • 1,154
7 votes
5 answers
4k views

UITextView not Scrolling in tvOS

I have a UITextView in my TV app, when i try to make it focusable then the UI is not making it focusable and i am unable to scroll it. I read some questions about it and some says that its a known ...
Madu's user avatar
  • 4,929
7 votes
3 answers
9k views

How to make a UIView focusable using the focus engine on Apple TV

Is it possible to make a UIView focusable? Or should I just use a custom UIButton for all possible views? I tried to override canBecomeFocused but nothing happened.
Pavel Smejkal's user avatar
7 votes
3 answers
2k views

Use external javascript libraries for TVML based Apple TV apps?

Is it possible to load and use external javascript libraries for use on TVML Apple TV apps? For example, can I load the Firebase js library and use it to fetch data? Or load lodash to use it's ...
Ross Waycaster's user avatar
7 votes
3 answers
8k views

iOS screen mirroring shows overscan borders on selected apps

Problem: iPhone screen mirroring & a dedicated external view of my app show an inch of a black border on all sides. But: Some views display perfect without black borders on the full-screen, e.g.,...
Michael Schmidt's user avatar
7 votes
3 answers
3k views

tvOS: Rounded corners for image view when focused

I have an image view that will get this awesome tvOS focus effect when the containing view gets focused. The problem is - it should have rounded corners. Now this is easily done: imageView.layer....
cr4sh_override's user avatar
7 votes
3 answers
4k views

How to get motion events with the Apple TV remote

Has anybody figured out how to get motion events working with the new apple TV remote? Thanks. I've tried calling override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent?) { ...
CodyMace's user avatar
  • 656
7 votes
3 answers
4k views

Customize Keyboard in tvOS

I use UISearchController to search inline with keyboard, textfield and results in one screen. Does tvOS allow to customize keyboard? I want to use dark design, but I don't know how to customize the ...
Timur Mustafaev's user avatar
7 votes
2 answers
5k views

Block AirPlay Mirroring on iOS 5

On iOS 5 with an iPad 2 or iPhone 4S, users can enable screen mirroring with their Apple TV and AirPlay. How can I prevent my app from being mirrored in this way? Is there any way to detect that this ...
Carl Veazey's user avatar
  • 18.4k
7 votes
3 answers
7k views

iOS AirPlay Second Screen Tutorial

I am looking at adding AirPlay capabilities to one of my ViewControllers. The View Controller just shows a UIWebView. What I want to do is add a button that will mirror this content to an Apple TV. ...
user717452's user avatar
7 votes
1 answer
2k views

How do I connect to a external game controller in swift - apple tv

I have followed this tutorial here: https://cartoonsmart.com/how-to-support-external-game-controllers-with-swift-2-and-sprite-kit-for-the-new-apple-tv/ to connect a external game controller to the ...
Rishi's user avatar
  • 409
7 votes
3 answers
2k views

Unable to Install the Charles Proxy profile on Apple TV via Apple Configurator 2

I have been trying this official guide to setup Charles Proxy on my Apple TV (4th Gen, running tvOS 13.3). After creating the profile on Apple Configurator 2, I was performing the steps for setting up ...
Saad Qureshi's user avatar
7 votes
3 answers
4k views

Disable focus triggered scrolling of UICollectionView

Is there a way to disable automatic scrolling of the UICollectionView when cell gets focused? I want to adjust the content offset of the cell manually when it gets into focus. I wan't to update the ...
Rafał Sroka's user avatar
  • 39.9k
7 votes
1 answer
96 views

Login Logout for ViewController and TabBarViewcontroller? APPLE TV

would someone have any experience with this type of layout? I have a Initial ViewController that is used for Login then after Login it goes to a TabBarViewController as presentViewController() from ...
Silent's user avatar
  • 661
7 votes
0 answers
1k views

Detect Siri Remote from iPhone via Bluetooth

Is it possible to detect the Apple TV 4 Siri Remote from an iOS application using CoreBluetooth? I'm able to detect the Apple TV, but I'm not having any luck detecting the Siri Remote. The Siri Remote ...
Daniel Storm's user avatar
  • 18.7k
6 votes
1 answer
3k views

AppleTV UIAlertView equivalent

So I'm working on an in app purchase in a SpriteKit game on AppleTV, but in the event of an error with payment or any other variety of errors, I want to display an error. UIAlertView is how I did it ...
mredig's user avatar
  • 1,765

1
2 3 4 5
12