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

能否给"/api/v1/current/video"接口返回添加视频特征码及Id参数 #63

Open
XuanRikka opened this issue Aug 28, 2024 · 3 comments

Comments

@XuanRikka
Copy link

如题,给"/api/v1/current/video"获取当前正在播放的视频信息接口返回数据添加视频特征码参数

@XuanRikka XuanRikka changed the title 能否给"/api/v1/current/video"接口返回添加视频特征码参数 能否给"/api/v1/current/video"接口返回添加视频特征码及Id参数 Aug 28, 2024
@kaedei
Copy link
Owner

kaedei commented Aug 29, 2024

可以。下个版本会给返回值加上IdHash两个字段。
需要注意的是:

  • 如果当前视频没有收录在媒体库中,或当前播放的非本地文件,Id将为空。部分串流状态下Id可能是个随机uuid。
  • 如果当前视频不是本地文件(串流播放、展会模式等),Hash将为空。
  • 部分串流状态下,例如从媒体库播放 webdav/emby/onedrive 上的远程视频,播放时会有Hash

@XuanRikka
Copy link
Author

如果可以的话希望能把视频播放状态,也就是暂停这些状态加上

@XuanRikka
Copy link
Author

好吧有这个东西,但是在文档内的参数解释里似乎没有写Playing参数的解释,我发起了一个pr来解决该问题

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