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

没有弹弹Play 的解析器 #58

Open
Trickness opened this issue Jul 17, 2016 · 1 comment
Open

没有弹弹Play 的解析器 #58

Trickness opened this issue Jul 17, 2016 · 1 comment

Comments

@Trickness
Copy link

Trickness commented Jul 17, 2016

弹弹Play的弹幕云的格式和B站的不一样
然后貌似代码里面只有AB两站的弹幕解析器

副弹弹Play的弹幕格式:
<Comment Time="1.1" Mode="2" Color="3" Timestamp="4" Pool="5" UId="6" CId="7">sample string 8</Comment>

Time: 浮点数形式的弹幕时间,单位为秒。
Mode: 弹幕模式,1普通弹幕,4底部弹幕,5顶部弹幕。
Color: 32位整形数的弹幕颜色,算法为 R_256_256 + G*256 + B。
Timestamp: 弹幕发送时间戳,单位为毫秒。可以理解为Unix时间戳,但起始点为1970年1月1日7:00:00。
Pool: 弹幕池,目前此数值为0。
UId: 用户编号,匿名用户为0,备份弹幕为-1,注册用户为正整数。
CId: 弹幕编号,此编号在同一个弹幕库中唯一,且新弹幕永远比旧弹幕编号要大。
Message: 弹幕内容文字。\r和\n不会作为换行转义符。

@jabbany
Copy link
Owner

jabbany commented Jul 18, 2016

建议不错。最近我有点忙,不过欢迎发PR :)
好像 Dandanplay有俩格式?JSON和XML都有?
感觉JSON的话用起来可能更方便吧。

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

No branches or pull requests

2 participants