feat: 补齐播放器接口的互动视频资讯 (#1244)

* feat: 补齐播放器接口的互动视频资讯

* feat: 更新互动视频的剧情图id取得方法

---------

Co-authored-by: Session小胡 <102411014+SessionHu@users.noreply.github.com>
This commit is contained in:
watermelon 2025-05-24 17:44:21 +08:00 committed by GitHub
parent 70e1ba5ce0
commit d92d65bfcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -16,7 +16,7 @@
| ------------- | ---- | -------- | ------------ | ------------------ |
| aid | num | 稿件avid | 必要(可选) | avid与bvid任选一个 |
| bvid | str | 稿件bvid | 必要(可选) | avid与bvid任选一个 |
| graph_version | num | 剧情图id | 必要 | 位于`player.so`中 |
| graph_version | num | 剧情图id | 必要 | 可于[播放器](/docs/video/player.md)接口的 `interaction` 對象取得 |
| edge_id | num | 模块编号 | 非必要 | 0或留空为起始模块 |
**json回复**
@ -366,4 +366,4 @@ curl -G 'https://api.bilibili.com/x/stein/edgeinfo_v2' \
}
```
</details>
</details>

View File

@ -61,6 +61,7 @@ web 播放器的信息接口,提供正常播放需要的元数据,包括:
| online_count | num | 在线人数 | |
| need_login_subtitle | bool | 是否必须登陆才能查看字幕 | 是的 |
| preview_toast | str | `为创作付费,购买观看完整视频\|购买观看` | |
| interaction | obj | 互动视频资讯 | 若非互动视频,则无该栏位(直接没有该键,而非栏位值为空)|
| options | obj | | |
| guide_attention | any | | |
| jump_card | any | | |
@ -139,6 +140,16 @@ web 播放器的信息接口,提供正常播放需要的元数据,包括:
| team_type | str | | |
| team_name | str | | |
`data` 对象中的 `interaction` 对象 (如果有):
| 字段 | 类型 | 内容 | 备注 |
| --------- | ----- | -------- | ---- |
| graph_version | num | 剧情图id | |
| msg | str | | 未登入有机会返回 `登录后才能体验全部结局哦~` |
| error_toast | str | 错误信息? | 所有互动视频皆返回 `剧情图被修改已失效`,不确定有没有例外 |
| mark | num | 0? | |
| need_reload | num | 0? | |
`data`对象中的`elec_high_level`对象:
| 字段 | 类型 | 内容 | 备注 |