question

newuser-f4b3c127-c561-4b7b-ad3b-afe02ef44df9 avatar image

DIAL requests only responding to Netflix, YouTube and YouTubeTV on my fire stick

Hello!

It seems that only a few apps respond to DIAL requests.

After using the UPnP service discovery to determine the location of the DIAL interface on my fire stick, in this case 10.0.0.177:8009, I can get the status of YouTube no problem. I'm using the requests library for python in this example:

>>> response = requests.get("http://10.0.0.177:8009/apps/YouTube")
>>> response.status_code
200

And the response's text is the XML I expect to see, with the correct app state etc.

However, when I run the same request against Hulu, no dice:

>>> response = requests.get("http://10.0.0.177:8009/apps/Hulu")
>>> response.status_code
404

This could make sense, maybe Hulu decided not to implement DIAL.

Checking the fire stick's logs with ADB give me hope that my approach could be wrong. I see this log pattern appearing pretty regularly:

I(16301:21525) SsdpNanoHTTPD - Method:GET;
I(16301:21525) SsdpDialRestService - serve: Method: GET URI = /apps/Hulu;
I(16301:21526) SsdpNanoHTTPD - Method:GET;
I(16301:21526) SsdpDialRestService - serve: Method: GET URI = /apps/Netflix;
I(16301:21527) SsdpNanoHTTPD - Method:GET;
I(16301:21527) SsdpDialRestService - serve: Method: GET URI = /apps/YouTube;
I(16301:21528) SsdpNanoHTTPD - Method:GET;
I(16301:21528) SsdpDialRestService - serve: Method: GET URI = /apps/AmazonYouTubeApp;
I(16301:21529) SsdpNanoHTTPD - Method:GET;
I(16301:21529) SsdpDialRestService - serve: Method: GET URI = /apps/primeLive;
I(16301:21530) SsdpNanoHTTPD - Method:GET;
I(16301:21530) SsdpDialRestService - serve: Method: GET URI = /apps/AmazonInstantVideo;
I(16301:21531) SsdpNanoHTTPD - Method:GET;
I(16301:21531) SsdpDialRestService - serve: Method: GET URI = /apps/Hulu;
I(16301:21532) SsdpNanoHTTPD - Method:GET;
I(16301:21532) SsdpDialRestService - serve: Method: GET URI = /apps/Movies;
I(16301:21533) SsdpNanoHTTPD - Method:GET;
I(16301:21533) SsdpDialRestService - serve: Method: GET URI = /apps/YouTubeKids;
I(16301:21534) SsdpNanoHTTPD - Method:GET;
I(16301:21534) SsdpDialRestService - serve: Method: GET URI = /apps/YouTubeTV;

It seems like the AFS is trying to serve the status info for Hulu, but something is happening with the output.

Is my approach for getting information about the Hulu app with DIAL on AFS incorrect?

Thanks so much,

Devon

fire tvdebuggingapi
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I think this post should be directed toward @Levon@Amazon, who seems to be the authority on DIAL and AFS.

0 Likes 0 ·

0 Answers