Jump to content
C4 Forums | Control4

How to kill video stream on Apple TV with IR driver on ROOM OFF


pinkoos

Recommended Posts

Hi, does anyone know how to kill a currently streaming video (for example, YouTube TV) with a ROOM OFF command on Apple TV 4K with the official IR driver?

My dealer has programmed multiple MENU commands on ROOM OFF (which would bring the Apple TV back to the homescreen thus killing the stream), but the behavior is inconsistent - sometimes the stream is stopped, sometimes it's stopped momentarily but then starts again and sometimes it doesn't stop at all

I'm able to monitor this by using the iOS Home app which shows whether the Apple TV continues to stream something on the ROOM OFF command or pauses/stops the stream

It seems that little "homescreen" button on the Apple TV remote is a bluetooth only command and doesn't generate a signal that can either be transmitted by IR or learned

Thank you

Link to comment
Share on other sites


I think the simplest programming would be to create a new macro:
Apple_TV_Off

Call the macro from your 'Room Off' function.

In the macro add the sequence of commands the ATV needs.

From memory it is either 'Menu' or 'Cancel' (though I think these are the same IR hex code - just one of them pulses 5 times)

If it's not working, you could add a delay and call the macro a second time and see if that helps.

I do recall having problems with ATV not accepting IR commands while it was in the middle of loading, eg, While the Netflix or YouTube start up /splash screen is displaying - the cancel would not work....

I've also wondered what happens to the ATV when streaming content which requires DHCP - if the TV is turned off, ATV would fail and then does the Menu command work??
 


 

 

Link to comment
Share on other sites

I had a similar issue with a client's Apple TV and an IR driver and this is how I resolved, I just sent the 'Stop' command whenever the room was turned off.

My nested IF statements are just there to check it is not in use in another room as the Apple TV is connected to a 4x4 video matrix.

https://www.dropbox.com/s/2oa0tvu9d8f0cvw/Screenshot 2019-10-30 19.25.22.png?dl=0

I used Jesse Smith's awesome IR driver here:

https://www.dropbox.com/s/vkevfgxduc1wcm7/Apple_TV_V4_EA.c4z?dl=0

Link to comment
Share on other sites

4 minutes ago, Crustyloafer said:

I had a similar issue with a client's Apple TV and an IR driver and this is how I resolved, I just sent the 'Stop' command whenever the room was turned off.

My nested IF statements are just there to check it is not in use in another room as the Apple TV is connected to a 4x4 video matrix.

https://www.dropbox.com/s/2oa0tvu9d8f0cvw/Screenshot 2019-10-30 19.25.22.png?dl=0

I used Jesse Smith's awesome IR driver here:

https://www.dropbox.com/s/vkevfgxduc1wcm7/Apple_TV_V4_EA.c4z?dl=0

Thank you for this

Link to comment
Share on other sites

Thanks @Crustyloafer, I believe your solution may have worked

I think what it does is pause the YouTube TV stream which, hopefully, actually stops the incoming stream, thus saving bandwidth

The way I'm trying to monitor this is through the iOS Home app - where I can see if any particular ATV is playing or paused (since the TV is off)

Your ROOM OFF command shows that the tile for the ATV w/i the Home app continues to "play" for a time before it changes to pause

I'll continue to monitor to see what happens

Thanks again

Link to comment
Share on other sites

52 minutes ago, pinkoos said:

Thanks @Crustyloafer, I believe your solution may have worked

I think what it does is pause the YouTube TV stream which, hopefully, actually stops the incoming stream, thus saving bandwidth

The way I'm trying to monitor this is through the iOS Home app - where I can see if any particular ATV is playing or paused (since the TV is off)

Your ROOM OFF command shows that the tile for the ATV w/i the Home app continues to "play" for a time before it changes to pause

I'll continue to monitor to see what happens

Thanks again

Glad to hear it.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.