question

newuser-5e1f6a0b-11bc-4175-8fac-2221568bb574 avatar image

com.amazon.whisperlink.service.fling.media.SimplePlayerError

I am using Amazon Fling SDK sample code (sender and receiver) both but getting below error.

Using android phone as sender (Android Pie) and TV FireStick as receiver. The only change in sample code is I recompiled both for Android API 28.

Any suggestion will be helpful.


Caused by: SimplePlayerException(error:com.amazon.whisperlink.service.fling.media.SimplePlayerError@7da8ddf, message:Permission Denial: broadcast from android asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS)
at com.amazon.whisperlink.service.fling.media.SimplePlayer$setMediaSource_result.read(SimplePlayer.java:2641)
at com.amazon.whisperlink.service.fling.media.SimplePlayer$Client.setMediaSource(SimplePlayer.java:612)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$13.connected(PlayerDeviceImpl.java:297)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$13.connected(PlayerDeviceImpl.java:284)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:459)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)

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.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for reporting this. Amazon Fling SDK is not yet fully compatible with Android API level 28. This may be a side-effect of this limitation. Do you see any other crashes, on either devices?

Could you please add the following compile-time dependency in your build.gradle file:

android {
    useLibrary 'org.apache.http.legacy'
}
10 |5000

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