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

【弹幕需求】 #15

Closed
jadehh opened this issue Mar 12, 2024 · 5 comments
Closed

【弹幕需求】 #15

jadehh opened this issue Mar 12, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jadehh
Copy link
Owner

jadehh commented Mar 12, 2024

弹幕实现方法

爬虫腾讯弹幕来实现,根据名称+集数来爬取弹幕

猫影视不支持弹幕

@jadehh
Copy link
Owner Author

jadehh commented Mar 12, 2024

参考链接

@jadehh
Copy link
Owner Author

jadehh commented Mar 12, 2024

@jadehh
Copy link
Owner Author

jadehh commented Mar 12, 2024

@jadehh jadehh mentioned this issue Mar 12, 2024
29 tasks
@jadehh jadehh self-assigned this Mar 13, 2024
@jadehh
Copy link
Owner Author

jadehh commented Mar 13, 2024

流程

  • 支持弹幕开关配置
  • 在播放界面加载弹幕,所以播放界面需要传入Vod Detail信息
  • 查询优酷和腾讯视频接口,找出当前播放的连接信息

根据名称搜索影片

搜索Api

https://search.youku.com/api/search?pg=1&keyword=搜索

获取showId

获取视频详情

详情Api

https://search.youku.com/api/search?appScene=show_episode&showIds=视频ID

获取视频详情链接

下载弹幕Api

弹幕下载Api

https://dmku.thefilehosting.com/?ac=dm&url=视频链接地址

下载弹幕

参考
https://github.com/nilaoda/Blog

@jadehh
Copy link
Owner Author

jadehh commented Mar 14, 2024

测试弹幕

初步实现弹幕功能,下一步考虑美化弹幕

<d p="{time},{type},{size},{color},{timestamp},{pool},{uid_crc32},{row_id}">

        {Text}

<‌/d>

    <‌!-- time为弹幕在视频里的时间 -->

    <‌!-- type为弹幕类型 -->

    <‌!-- size为字体大小 -->

    <‌!-- color为十进制的RGB颜色(16进制转10进制) -->

    <‌!-- timestamp为弹幕发送时间戳(unix时间戳) -->

    <‌!-- pool为弹幕池 -->

    <‌!-- uid_crc32为发送者uid的crc32 -->

    <‌!-- row_id用于标记顺序和历史弹幕 -->

@jadehh jadehh closed this as completed Mar 15, 2024
@jadehh jadehh added the enhancement New feature or request label Mar 15, 2024
@jadehh jadehh added this to the 待修复工作 milestone Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant