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

作者你好,我想知道我下载的xml和你的弹幕文件json怎么不一样?我这个不能直接调用到dplayer里面啊? #1

Open
sxxcb opened this issue Oct 31, 2018 · 3 comments

Comments

@sxxcb
Copy link

sxxcb commented Oct 31, 2018

No description provided.

@sxxcb
Copy link
Author

sxxcb commented Oct 31, 2018

而且我就是从网上下载了json的弹幕文件,播放器会显示播放失败,而且我打开了你的json文件和我下载的json文件格式完全不一样,能知道你是怎么转换的么?或者从哪里下载那种格式?

@songkeys
Copy link
Owner

你好。
我也是从网上下载的 xml 文件,只不过根据 dplayer 的接口格式要求,又重新转换了一遍,如果需要的话,我可以这两天把转换的脚本放上来~

@songkeys
Copy link
Owner

写得很草率了,不好意思,可以参考一下:
https://github.com/Songkeys/my-own-swordsman/blob/master/danmu/parser.js

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