Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video not play in android 11 to Fire tv stick #7

Open
nimisharanipabacancy opened this issue Feb 10, 2022 · 11 comments
Open

Video not play in android 11 to Fire tv stick #7

nimisharanipabacancy opened this issue Feb 10, 2022 · 11 comments

Comments

@nimisharanipabacancy
Copy link

I have implement this module.

Android 10:

  • I am able to discover Fire TV stick, connect and play video on it.

Android 11:

  • Able to discover Fire Tv stick and connect.
  • While try to play video it's not play on TV and getting error Error setting media source. Is their any device specific configuration require for android 11?
@ubuvoid
Copy link

ubuvoid commented Mar 28, 2022

i suspect there might be an api-breaking change somewhere in the stack. can you provide error logs for the android 11 case?

@nimisharanipabacancy
Copy link
Author

Following error got in android 11 and above os

E/PlayerDeviceImpl: Exception: 
    com.amazon.whisperlink.exception.WPTException: com.amazon.whisperlink.exception.WPTException
        at com.amazon.whisperlink.util.Connection.throwIfNetworkError(Connection.java:804)
        at com.amazon.whisperlink.util.Connection.doConnectOnce(Connection.java:725)
        at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:587)
        at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:537)
        at com.amazon.whisperlink.util.Connection.connect(Connection.java:380)
        at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:457)
        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:923)
     Caused by: com.amazon.whisperlink.exception.WPTException
        at com.amazon.whisperlink.util.Connection.doConnectOnce(Connection.java:679)
        at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:587) 
        at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:537) 
        at com.amazon.whisperlink.util.Connection.connect(Connection.java:380) 
        at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:457) 


@ubuvoid
Copy link

ubuvoid commented Apr 8, 2022

I think you should follow up with Amazon support directly if possible. This stack overflow post seems to show someone having a very similar issue, so it's probably not just you: https://stackoverflow.com/questions/71649822/amazon-fling-cannot-install-product-from-remote-install-service/71775640#71775640

@ubuvoid
Copy link

ubuvoid commented Apr 8, 2022

I sent this bug to someone who still works on FireOS, they're trying to find out if anyone at the company is currently paid to maintain fling / whisperplay

@ubuvoid
Copy link

ubuvoid commented Apr 8, 2022

If you (or anyone who's reading this) runs into other WP / Fling issues, get my attention at https://github.com/Unofficial-Whisperplay-Fling-Helpline/wp/issues and I'll do my best.

Disclaimer: if it was my job to maintain this library, i would quit, and it was, so i did.

@nimisharanipabacancy
Copy link
Author

I had posted same issue in Amazon support as well. I have not get any response yet.

https://amazon.developer.forums.answerhub.com/questions/244408/amazon-fling-android-sdk-failed-to-cast-video-in-a.html (This post is currently awaiting moderation. So may not visible to all)

@ylchen2021
Copy link

I ran into the same problem. Can not fling on Android 11 phone if APP target sdk is 30 or above

@krishna415741
Copy link

@ylchen2021 is it working for target sdk below 30. please let me know. I am also facing the same exception in android 13.

@krishna4157
Copy link

I am also facing the same issue.

No Whisperplay XML, will not be hosting any services

2022-11-17 15:02:14.427 13605-13820/com.castapp D/HELLO WORLD888 :: [MediaPlayer.MediaInfo.Get, MediaPlayer.Display.Image, MediaPlayer.Play.Audio, MediaPlayer.Play.Video, MediaPlayer.Close, MediaPlayer.MetaData.MimeType, MediaPlayer.MetaData.Thumbnail, MediaPlayer.MetaData.Title, MediaPlayer.Subtitle.WebVTT, MediaControl.Play, MediaControl.Pause, MediaControl.Stop, MediaControl.Seek, MediaControl.Duration, MediaControl.Position, MediaControl.PlayState, MediaControl.PlayState.Subscribe]
2022-11-17 15:02:14.428 13605-13820/com.castapp D/HELLO WORLD888 :: naman's FireTVStick
2022-11-17 15:02:14.429 13605-16358/com.castapp D/WhisperLink: Connection - Connection Attempt #:0: Excluded transports :[]
2022-11-17 15:02:14.429 13605-16358/com.castapp D/WhisperLink: Connection - doConnectOnce, device=[device=null], service=Description(sid:amzn.reg, friendlyName:null, accessLevel:3, security:0, flags:0, version:1), protocol=null, channel=null; excluded=[]
2022-11-17 15:02:14.429 13605-16358/com.castapp D/WhisperLink: TTransportManager - Get transport for local device amzn.reg
2022-11-17 15:02:14.429 13605-16358/com.castapp D/WhisperLink: Connection - Returning a cache transport for amzn.reg
2022-11-17 15:02:14.429 13605-16358/com.castapp D/WhisperLink: Connection - calling Connection.close for device() [device=null]
2022-11-17 15:02:14.429 13605-16358/com.castapp D/PlayerDeviceImpl: callService.run() - connection=com.amazon.whisperlink.util.Connection@7f68dfb
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: Connection - Connection Attempt #:0: Excluded transports :[]
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: Connection - doConnectOnce, device=[device: local=false, uuid=D025D3547580E1F1A3149BDAA649352D, routes={inet=Route(ipv4:192.168.29.193, unsecurePort:36474, securePort:38380)}], service=Description(sid:amzn.thin.pl, friendlyName:null, accessLevel:0, security:0, flags:0, version:0), protocol=null, channel=null; excluded=[]
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: Connection - Connection Attempt #:0: Excluded transports :[]
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: Connection - doConnectOnce, device=[device=null], service=Description(sid:amzn.reg, friendlyName:null, accessLevel:3, security:0, flags:0, version:1), protocol=null, channel=null; excluded=[]
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: TTransportManager - Get transport for local device amzn.reg
2022-11-17 15:02:14.430 13605-16358/com.castapp D/WhisperLink: Connection - Returning a cache transport for amzn.reg
2022-11-17 15:02:14.431 13605-16358/com.castapp D/WhisperLink: Connection - calling Connection.close for device() [device=null]
2022-11-17 15:02:14.431 13605-16358/com.castapp D/WhisperLink: TTransportManager - Get transport for remote device amzn.thin.pl; channel:null
2022-11-17 15:02:14.431 13605-16358/com.castapp D/WhisperLink: TTransportManager - Getting external transport for channel:inet: Channel connected? :false: ext channel :com.amazon.whisperlink.port.android.transport.TExternalSocketFactory@a3de1f6
2022-11-17 15:02:14.431 13605-16358/com.castapp E/WhisperLink: TTransportManager - Unable to get external transport, channel factory is null, channel=null
2022-11-17 15:02:14.431 13605-16358/com.castapp D/WhisperLink: Connection - Exception in connection:null
com.amazon.whisperlink.exception.WPTException
at com.amazon.whisperlink.util.Connection.doConnectOnce(Connection.java:679)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:587)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:537)
at com.amazon.whisperlink.util.Connection.connect(Connection.java:380)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
2022-11-17 15:02:14.431 13605-16358/com.castapp W/WhisperLink: Connection - No route to service :Description(sid:amzn.thin.pl, friendlyName:null, accessLevel:0, security:0, flags:0, version:0): on device :[device: local=false, uuid=D025D3547580E1F1A3149BDAA649352D]
2022-11-17 15:02:14.432 13605-16358/com.castapp W/WhisperLink: Connection - Exception in connection. Exception code :1 :class com.amazon.whisperlink.exception.WPTException :com.amazon.whisperlink.exception.WPTException
2022-11-17 15:02:14.432 13605-16358/com.castapp D/WhisperLink: Connection - calling Connection.close for device() [device: local=false, uuid=D025D3547580E1F1A3149BDAA649352D, routes={inet=Route(ipv4:192.168.29.193, unsecurePort:36474, securePort:38380)}]
2022-11-17 15:02:14.432 13605-16358/com.castapp E/PlayerDeviceImpl: Exception:
com.amazon.whisperlink.exception.WPTException: com.amazon.whisperlink.exception.WPTException
at com.amazon.whisperlink.util.Connection.throwIfNetworkError(Connection.java:804)
at com.amazon.whisperlink.util.Connection.doConnectOnce(Connection.java:725)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:587)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:537)
at com.amazon.whisperlink.util.Connection.connect(Connection.java:380)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: com.amazon.whisperlink.exception.WPTException
at com.amazon.whisperlink.util.Connection.doConnectOnce(Connection.java:679)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:587)
at com.amazon.whisperlink.util.Connection.doConnect(Connection.java:537)
at com.amazon.whisperlink.util.Connection.connect(Connection.java:380)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$23.call(PlayerDeviceImpl.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
2022-11-17 15:02:14.432 13605-16358/com.castapp D/WhisperLink: Connection - calling Connection.close for device() [device: local=false, uuid=D025D3547580E1F1A3149BDAA649352D, routes={inet=Route(ipv4:192.168.29.193, unsecurePort:36474, securePort:38380)}]
2022-11-17 15:02:14.432 13605-13605/com.castapp E/Error: Error playing video
com.connectsdk.service.command.FireTVServiceError: Error setting media source
at com.connectsdk.service.FireTVService$6.futureIsNow(FireTVService.java:613)
at com.amazon.whisperplay.fling.media.controller.impl.PlayerDeviceImpl$AsyncFutureTask.done(PlayerDeviceImpl.java:594)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
2022-11-17 15:02:14.433 13605-13605/com.castapp D/CHECK DETAILS :: {"id":"7e21ebe9-dd62-4b9c-a56b-13c4866f2ad9","lastKnownIPAddress":"D025D3547580E1F1A3149BDAA649352D","friendlyName":"naman's FireTVStick","lastConnected":1668677527,"lastDetection":1668677526,"services":{"D025D3547580E1F1A3149BDAA649352D":{"class":"FireTVService","description":{"ipAddress":"D025D3547580E1F1A3149BDAA649352D","uuid":"D025D3547580E1F1A3149BDAA649352D","friendlyName":"naman's FireTVStick","port":0,"serviceId":"FireTV"},"config":{"class":"ServiceConfig","lastDetection":1668666522,"UUID":"D025D3547580E1F1A3149BDAA649352D"}}}}
2022-11-17 15:02:16.020 13605-16282/com.castapp I/JmDNSImpl: updateRecord() name=amzn.dmgr:9E510420123173774DE800C681732F01:hRvnSWvBgf:582676 typeSubType=_amzn-wplay._tcp.local. op=Remove #listeners=2
2022-11-17 15:02:16.021 13605-16312/com.castapp D/WhisperLink: JmdnsServiceListener - Service Removed: Service Name: amzn.dmgr:9E510420123173774DE800C681732F01:hRvnSWvBgf:582676 Service Type: _amzn-wplay._tcp.local.
2022-11-17 15:02:16.021 13605-16312/com.castapp D/WhisperLink: JmdnsServiceManager - Not propagating loss of 9E510420123173774DE800C681732F01

@theduc0x
Copy link

theduc0x commented Oct 2, 2023

@krishna4157 @krishna415741 @nimisharanipabacancy @ylchen2021 @ubuvoid

Has anyone found a way to solve it? I found a few apps on Google Play that might work

@VishV-Android
Copy link

VishV-Android commented Feb 14, 2024

@theduc0x @krishna4157 @krishna415741 @nimisharanipabacancy @ylchen2021 @ubuvoid

Is anyone found solution for Android 11 and higher version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants