Channels API: can't switch channels if something is already playing

I'm trying to use the API with IFTTT and webhooks. The goal is to link it to Google Assistant. Everything is connected and working but I'm having trouble issuing a play channel command. If no channel is playing and I issue the command, everything works fine. If a channel is already playing and I issue the command, I just get a blank screen. If I then query the status via the API it says it's stopped. Is this expected behaviour?

Below is an excerpt of the log. From a stopped state I sent an API command to play channel 25. While channel 25 is playing, I send another command to play channel 12. Blank screen apppears. (I'm testing this all with CURL commands directly to eliminate any issues comiing from IFTTT.)

https://1drv.ms/t/s!AlC0ljQw9jZgg9MFJEEEd0F7ZF62vQ

Which platform and device?

Nvidia Shield. App version is 2.1.8.

Any ideas on this? I've tested on my Apple TV 4 and the API works as intended. The issue appears to be unique to the Nvidia Shield or Android TV?

Yea clearly a bug. This used to work, so something must have changed.

I'm uploading a new beta build with a possible fix. If that doesn't work I'll have to setup my dev SHIELD and do some more testing.

Just updated and tried again. No change. I submitted diagnostics.

Thanks for testing.

Just to confirm, if you change channels via the pull down Quick Guide, it works fine?

Strange because the API re-uses the same code as that for changing channels.

No issues changing via the pull down guide.

Reproduced. Uploading new beta with fix now.

Fixed! Thank you!

1 Like

I'm not sure if this is related to the recent API fixes, but Channels is no longer responding to generic Google Assistant commands issued to the Shield. For example, telling the Shield to pause or play via the remote microphone or via another device. This works fine for apps like Netflix or Plex, and I think it used to work for Channels but it isn't anymore.

BTW I've been doing a lot of tinkering with all things Google Assistant lately, and that's why I'm stumbling across these things.

I have the same problem. I can not set any channel with API

pause and resume are working

TVos 13.4
Channels live tv App 3.2.35
Apple TV a1625

$ curl -X POST http://192.168.178.46:57000/api/pause

{"status":"paused","muted":false,"channel":{"number":"1","name":"NPO 1 HD","image_url":"http:\/\/img.hdhomerun.com\/channels\/EU61014.png"},"now_playing":{"title":"NOS Journaal","summary":"Met het laatste nieuws, gebeurtenissen van nationaal en internationaal belang en de weersverwachting voor de avond en komende dagen.","image_url":"http:\/\/img.hdhomerun.com\/titles\/C817615NLIXT2.jpg"}} 

$ curl -X POST http://192.168.178.46:57000/api/play/channel/2

{"status":"paused","muted":false,"channel":{"number":"1","name":"NPO 1 HD","image_url":"http:\/\/img.hdhomerun.com\/channels\/EU61014.png"},"now_playing":{"title":"NOS Journaal","summary":"Met het laatste nieuws, gebeurtenissen van nationaal en internationaal belang en de weersverwachting voor de avond en komende dagen.","image_url":"http:\/\/img.hdhomerun.com\/titles\/C817615NLIXT2.jpg"}}

This is fixed in the 4.0 beta available on testflight.

https://community.getchannels.com/t/channels-4-0-beta/22082

Okay nice how can I test the beta version on TestFlight ?

The beta program is only available to DVR subscribers at the moment. You can install via getchannels.com/beta

Okay, I only have purchased the Apple TV app (so I cannot try the beta version?). When will the next version with a fix be released? I really like to start my tv with apple shortcuts.

Still the same issue on 3.2.41