ConnectSDK / Connect-SDK-Android

Android source project for Connect SDK
Apache License 2.0
309 stars 129 forks source link

Im getting issues only in firestick device java.util.concurrent.ExecutionException: java.io.IOException: Cannot set Url on media device #418

Open ezcode147 opened 3 months ago

ezcode147 commented 3 months ago

When I cast images or videos to fire tv, I get this error SimplePlayerException(error:com.amazon.whisperlink.service.fling.media.SimplePlayerError@1661027, message:Requires ACCESS_HDMI_SERVICE_ADVANCED permission). And when I debug deep inside, I get this error java.util.concurrent.ExecutionException: java.io.IOException: Cannot set Url on media device It happens on Amazon Fling version 1.6.2 Has anyone fixed it yet?

theduc0x commented 2 months ago

If I remember correctly, go to the Fire TV homepage and update the AmazingFling lib

petergoczan commented 1 month ago

@theduc0x do you mean to download the latest SDK from here?

I'm using the 1.6.3 version and still getting the exact same issue.

First I'm getting: SimplePlayerException(error:com.amazon.whisperlink.service.fling.media.SimplePlayerError@74da573, message:Requires ACCESS_HDMI_SERVICE_ADVANCED permission)

Then: Connection - calling Connection.close for device() [device: local=false, uuid=MY_UUID, routes={inet=Route(ipv4:192.168.100.8, unsecurePort:45663, securePort:40625)}] WhisperLink my.package.name I TWhisperLinkTransport - Closing connection for Service: my.package.name.custom.player on Device A21ABBFC202DE7CE853FCFC8BEC7A066 isClient: true Connection Id: 3299 Channel: inet

Then: exception: java.io.IOException: Cannot set Url on media device

theduc0x commented 1 month ago

@petergoczan I checked and there is indeed an error, but I see it does not affect connecting and streaming media to Fire TV.

petergoczan commented 1 month ago

Thanks @theduc0x , I'd like to add that this java.io.IOException: Cannot set Url on media device error is also coming for the FlingSample project, the calling Connection.close for device() is still concerning though

ezcode147 commented 1 week ago

Has anyone been able to fix this problem?