question

westlinkin avatar image
westlinkin asked

DIAL Integration problems

I changed the Manifest.xml like your doc said( https://developer.amazon.com/public/solutions/devices/fire-tv/docs/dial-integration), then I install the app on Fire TV, but nothing happened. I can't control the app (on the fire TV) with the app on the kindle fire hdx. What else should I done to integrate DIAL protocol?
fire tv
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Westlinkin, Thank you for reaching out. I think you need to do two things 1. Register you application name in DIAL registry. http://www.dial-multiscreen.org/dial-registry/apps 2. Add a file called Whisperplay.xml to your app's resources, in the res/xml/ directory. The contents of the file should look like this, where DialAppName is the name of your app in the DIAL registry: DialAppName android.intent.action.MAIN https://developer.amazon.com/sdk/asb/dial-integration.html#AddWhisperplayXML You can pass DIAL payload (information that can be passed to your app via the DIAL launch request), that payload will be delivered as an Intent extra with the value com.amazon.extra.DIAL_PARAM. Please refer below for more information. http://www.dial-multiscreen.org/
10 |5000

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

westlinkin avatar image
westlinkin answered
I've already register the DIAL app name and added a whisperplay.xml in my res/xml folder. What do you mean by "pass DIAL payload"? Any code snippet could help, Thank a lot.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, You need to use VisualOn SDK to integrate DIAL in your app. In order to get access of the SDK you need to file a ContactUs ( https://developer.amazon.com/help/contactus.html) with the below details from your developer account. 1. You company name 2. Contact Info 3. App name 4. The plan on using DIAL Thanks.
10 |5000

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

westlinkin avatar image
westlinkin answered
I've got the VisualOn SDK, it seems not to be the solution. Here is my use case: when user is using my app on Kindle Fire watching videos, if there is Fire TV in the same wifi environment, then an icon will show, when the user click the icon, Fire TV will play the video. Kinda like ChromeCast and normal Android devices. Cast/Fling the video from Kindle Fire tablets to Fire TV.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Westlinkin, Before taking your feedback to respective team, I would like to ask you one question. Why do you need DIAL for this need? Cant you discover Fire TV by IP search (like what is given in below stack overflow) from the app installed on Kindle Fire tablet, and then the counter part of the app (that is installed on Fire TV) will start receiving the stream from other end? http://stackoverflow.com/questions/13198669/any-way-to-discover-android-devices-on-your-network http://stackoverflow.com/questions/14401340/live-stream-video-from-one-android-phone-to-another-over-wifi The below app does the similar streaming form Android device to Fire TV devices. Please check http://www.amazon.com/gp/product/B00LB6P6T2
10 |5000

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

westlinkin avatar image
westlinkin answered
Yes, this is a way to do that, but there must be counter part of the app installed on the Fire TV to do the work. I want to cast/fling video to FireTV no matter whether there are any apps on FireTV
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Unfortunately, we do not have Media Casting API available for Fire TV like the one Chrome Cast has http://developer.android.com/reference/com/google/android/gms/cast/package-summary.html For future update on Fire TV please stay tuned on Mobile App Distribution Portal or Blogs ( https://developer.amazon.com/blog/index.html).
10 |5000

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