question

2kit consulting avatar image
2kit consulting asked

Discovery issues on iOS

Hi, we just started to integrate the Fling SDK (v1.1.3) in one of our iOS apps. The Fling SDK works pretty good until we unplug and later on restart the Fire TV. After unplugging the Fire TV the Fling SDK does not detect this state and the deviceLost callback is not fired. Even after suspending and resuming the iOS app the deviceDiscovered callback is fired for a device which is obviously offline, but for the Fling SDK it is still available. Now when we restart the Fire TV the Fing SDK discovers the Fire TV again and the deviceDiscovered callback is fired. The result is that the device list contains the same Fire TV twice. Moreover, establishing a connecting to the Fire TV is not possible, because the Fire TV uses a different tcp port after the restart, but the Fling SDK tries to connect to the old orphaned port. The only way to work around this is issues is to quit and restart the iOS app. This is really annoying because these steps are not known for most iOS users.

Log:
[…]
1446029267.279329:I:whisperplay:ttmgr:getTransport: ipv4://192.168.23.144:51888 sid: amzn.thin.pl, name: , acl: 0, security: 0
1446029267.280475:I:whisperplay:ttmgr:outgoing inet:unsecured connection:ios_1228 from device:ee877f5c935D6F9636E342AD9CC3A642 for service:amzn.thin.pl to device:3D84C4EC2454B3303A624719B03ED5BD 
1446029267.281183:whisperplay:amzn.thin.pl:perf:public:end:WPCreateClient: Whisperplay creating client for service amzn.thin.pl on device:3D84C4EC2454B3303A624719B03ED5BD
1446029267.281221:I:whisperplay:tw:open[client transport = ]
Thrift: Wed Oct 28 11:47:47 2015 TSocket::open() connect() Connection refused
2015-10-28 11:47:47.405 Cast Browser Fire TV[96140:453742] Exception calling service: connect() failed: Connection refused
2015-10-28 11:47:47.406 Cast Browser Fire TV[96140:453742] Failed to add status listener.  Error:Error Domain=connect() failed: Connection refused Code=126 "(null)"
[…]
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.

2kit consulting avatar image
2kit consulting answered
Hi, we updated the Fling SDK to v1.2.1, but the issues are still there.
10 |5000

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

Nick Gardner avatar image
Nick Gardner answered
Thank you very much for the report. We are aware of the behavior and are planning to release fix with the next major update. Unfortunately, we do not have a fixed date for the update. Best regards, Amazon Fling SDK
10 |5000

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

2kit consulting avatar image
2kit consulting answered
Hi, we updated the Fling SDK to v1.2.2, but the issues are still there and prevent us to migrate from our custom receiver solution to a Fling-based solution. Restarting a Fire TV (Stick) is a mandatory requirement for us, but the Fling SDK still does not handle a power off / power on cycle properly on iOS. It leads to an unusable app for users who have connected their Fire TV Stick directly to the televisions USB port. Moreover our customers cannot power off their Fire TVs for power saving or other reasons, which is pretty hard to explain.
10 |5000

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

J.D.Wooder avatar image
J.D.Wooder answered

Hi,

I've got the same problem running Fling SDK V1.3.0. If I unplug the fireTVStick (also the power plug) I get not "deviceLost"-callback. Did anyone solve this issue yet?

2 comments
10 |5000

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

Thanks J.D.Wooder, is there any way you could provide some of the logcat output around the issue? Thanks!

0 Likes 0 ·

Hi,

I start the discovery on iOS with

self.discoveryController?.searchPlayerWithId("de.xxx.yyy“, andListener: self, andEnableLogs: true)

There is "whisperplay" log-output when the fireTV stick is discovered. So the logging works.

When I unplug the fireTV-Stick (power unplug) no "whisperplay" log messages appear.

I've expected some "deviceLost" log messages.

Maybe this helps :)

0 Likes 0 ·
Levon@Amazon avatar image
Levon@Amazon answered

Thanks for additional details.

While using the Fling SDK, if the device is unplugged, the device will not be able to announce its status. It is currently not possible to get device lost callback in this scenario using the Fling SDK. Client application will have to monitor the connection status itself and if device is not accessible -- remove it from the list. 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.

J.D.Wooder avatar image
J.D.Wooder answered

Hi and thanks for answering my question :)

Are there any plans for a forthcoming Fling SDK release that will fire "device lost"-callbacks for the described scenario?

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.

Hi J.D.Wooder, I have submitted your request to the Fling team to consider as a feature request, however please note that we generally don't discuss any plans for future products, services, or features, therefore it will be available only when and if implemented. Thanks!

1 Like 1 ·