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

投屏播放后关闭播放界面, listen会得到同一个设备两条不同接口的IP #7

Open
wengxianxun opened this issue Mar 22, 2024 · 4 comments

Comments

@wengxianxun
Copy link

我用的是mac上的 恒星播放器 ,当我投屏播放一个视频后,关闭播放界面,这个时候恒星播放器还在,但是接口变了, flutter端的listen会返回两条ip
image

@wengxianxun
Copy link
Author

我看了源码, http://192.168.31.11:1714 是上次缓存的,但是恒性播放器已经变了接口,其实这个时候已经不能用了,如何把无用的设备删除掉。

@suconghou
Copy link
Owner

确实没有删除的这个逻辑, 后面我看如何处理一下

@wengxianxun
Copy link
Author

确实没有删除的这个逻辑, 后面我看如何处理一下

如何判断这个旧的设备信息是无效的,源码里面没找到这种判断函数

@wengxianxun
Copy link
Author

I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 38162
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 53914
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 53928
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 53934
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 41548
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 41554
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 41564
I/flutter (19704): SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.31.11, port = 41576

关闭播放界面后会一直报这个错误。

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

2 participants