question

tifr0z avatar image
tifr0z asked

Fling: Setting the Bonjour Name of a Custom Player?

I am experimenting with a Fling application using a custom Player, using a controller derived from the 'FlingSample' controller provided in the SDK (iOS), and a custom Player derived from the 'CustomPlayerSample' The controller detects the customer player, however the name of the custom player service shows up blank in the selection interface, below the "xyz's Fire Stick" (which I assume is the name for the default player service) screenshot: https://s3.amazonaws.com/web.swishly.com/shared/IMG_7036.PNG How does one set the display name for the custom player service? I was unable to find the relevant information from the docs.
amazon fling
10 |5000

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

memo@amazon avatar image
memo@amazon answered
Hi Tifr0z, The name of the device is identical to the one you see in the Settings->About page. The (NSString*) name selector returns the default Bonjour name set by the engine underneath Amazon Fling. The application does not need to set the name. It is read from the Fire TV/Stick's settings automatically. Could you please elaborate on your setup a bit? 1. Did you rename the service ID from amzn.thin.pl to your unique service ID? 2. Which device are you deploying the custom player on?
10 |5000

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

tifr0z avatar image
tifr0z answered
Thanks for the help! 1. Yes I renamed the service id to the unique SID of the custom player in the custom player's whisperplay.xml and in CustomMediaPlayerService.java, as well as in the controller's RootViewController.m 2. I am using a fireTV stick for testing (purchased Jul 21 2015 so I assume it is the latest generation)
10 |5000

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

memo@amazon avatar image
memo@amazon answered
Hi, From your setup, it is clear that the first entry in the list is the correct endpoint for your custom player. The second entry is puzzling - did you by any chance deploy your custom player on an Android phone/tablet?
10 |5000

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

tifr0z avatar image
tifr0z answered
No, I am using a fire TV stick (also tested with a fire TV with the same results) We can drop this thread and discuss on this other thread instead: https://forums.developer.amazon.com/forums/thread.jspa?threadID=9921&tstart=0
10 |5000

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