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

关于收不到弹幕的问题 #145

Closed
Dengzixu opened this issue Sep 4, 2023 · 8 comments
Closed

关于收不到弹幕的问题 #145

Dengzixu opened this issue Sep 4, 2023 · 8 comments

Comments

@Dengzixu
Copy link

Dengzixu commented Sep 4, 2023

最近发现有时候会收不到弹幕消息,然后进行了亿点简短的测试,以下仅为测试的猜测结果。

在请求 https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo 的时候需要携带 Cookie。Cookie 中只需要包含 SESSDATA 即可。

在进行身份认证的时候,uid 字段需要与 SESSDATA 所有者的 UID 相对应。

时间有限,仅做了一部分测试,希望作者能参考并帮助测试一下。

@copyliu
Copy link
Owner

copyliu commented Sep 4, 2023

但這需要登陸, 彈幕姬不會使用登陸的方式

@Dengzixu
Copy link
Author

Dengzixu commented Sep 4, 2023

目前只有在身份认证时将UID设置为 0,才能不丢消息,但是又看不到用户名,好难办啊。

@copyliu
Copy link
Owner

copyliu commented Sep 8, 2023

why close?

@Dengzixu
Copy link
Author

Dengzixu commented Sep 8, 2023

why close?

目前也没有更好的解决方案,如果有的话在 Reopen 吧

@copyliu
Copy link
Owner

copyliu commented Sep 8, 2023

方案倒是有, 走开放平台也不是不行, 见 https://t.bilibili.com/768514686210539521

@copyliu copyliu reopened this Sep 8, 2023
@iwxyi
Copy link

iwxyi commented Sep 9, 2023

目前只有在身份认证时将UID设置为 0,才能不丢消息,但是又看不到用户名,好难办啊。

登录的话有能获取到用户名的方案吗?

@passby6someone
Copy link

目前只有在身份认证时将UID设置为 0,才能不丢消息,但是又看不到用户名,好难办啊。

登录的话有能获取到用户名的方案吗?

我测了下,在请求 https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo 的时候带上cookie,拿着响应的token在WS鉴权是可以获取到用户名的

@copyliu
Copy link
Owner

copyliu commented Sep 13, 2023

duplicate #144

@copyliu copyliu closed this as completed Sep 13, 2023
@copyliu copyliu closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2023
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

4 participants