androidtv-remote icon indicating copy to clipboard operation
androidtv-remote copied to clipboard

Losing connection when entering in the search tab

Open MiguelRamosF opened this issue 2 years ago • 5 comments

Hello

I'm having "Remote connection closed" errors whenever I navigate to the search tab in the laucher screen. I tried this with Nvidia Shield and Google Chromecast so I think it's an issue with all android devices.

Did you get this error too?

MiguelRamosF avatar May 20 '22 14:05 MiguelRamosF

Yes, I had this problem. I never go to this kind of fields, but face this bug during my tests. I think that I would fix this bug when the official specifications will be released by Google and not reserved to some big tech companies - this work come from reverse ingeniering and is not perfect

louis49 avatar May 20 '22 16:05 louis49

I think that change code1 could change rights then fix this bug but never tried : https://github.com/louis49/androidtv-remote/blob/0e82d72ec067b6452e0e2266720ba5e023821bf6/src/remote/RemoteMessageManager.js#L46

louis49 avatar May 20 '22 17:05 louis49

Changing to what number please?

MiguelRamosF avatar May 20 '22 19:05 MiguelRamosF

That's the thing: I don't know, I don't know what those numbers are - I did some reverse engineering - I never got the official protocol specs which are reserved for certain prestigious Google clients. It would be necessary to test from 0 to 1000 and see the result but I don't have time for that at the moment. If you ever investigate the subject, I'm curious to know the results.

louis49 avatar Jun 07 '22 12:06 louis49

I wrote a crutch: after I set up a successful connection with TV, I start to send anonymous pongs to the TV once every 5 seconds. Maybe this is not the best solution to the problem, but now at least it doesn't disconnect.

ZhEgor avatar May 04 '23 13:05 ZhEgor