Hi, I'm currently using the newest version of the Fling SDK on Android. What I really miss is any documentation of exceptions and error messages regarding the RemoteMediaPlayer and RemoteMediaPlayer.AsyncFuture.
In the app I'd like to implement a fine grade error handling. Therefore, it's important to know which condition/error throws which exception (inheriting fromExecutionException). An example: Which exception is thrown when the user uninstalls the app while I'm sending a command like setMediaSource to the device? (answer: java.lang.IllegalArgumentException: Input Description is null). Any chance to get a better documentation of the errors and exception used in the library?
Answer by Levon@Amazon · 23 hours ago
We would be happy to help you implement the fine grade error handling in your app. The Exception behavior is defined in the Java docs found on the Fling website. You should be able to see all exceptions thrown by all methods for RemoteMediaPlayer by looking at the method details here: https://developer.amazon.com/public/binaries/content/assets/javadoc/whisperplay/javadocs/reference/com/amazon/whisperplay/fling/media/controller/remotemediaplayer.html
Please check the FlingSample project included in the SDK if you need any examples on how to implement the error handling.
For the setMediaSource example you included you can find the exceptions and their causes here: https://developer.amazon.com/public/binaries/content/assets/javadoc/whisperplay/javadocs/reference/com/amazon/whisperplay/fling/media/controller/remotemediaplayer.html#setMediaSource%28java.lang.String,%20java.lang.String,%20boolean,%20boolean%29
Please let us know if we have missed anything or if there is some way we can make our documentation more useful in the future. Thanks!
Multiple issues 7 Answers