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

自定义播放器 #5

Closed
anobaka opened this issue Dec 16, 2021 · 1 comment
Closed

自定义播放器 #5

anobaka opened this issue Dec 16, 2021 · 1 comment
Assignees
Labels
Milestone

Comments

@anobaka
Copy link
Owner

anobaka commented Dec 16, 2021

背景

目前调用调起视频播放器的方式是通过注册表获取可执行文件地址,并根据StartFileSelector返回的内容构造m3u列表,再通过系统命令调用。因为不是所有播放器都有注册表通用的m3u加载方式,暂时仅支持PotPlayer。

需求

需要支持用户自定义播放器,不仅用于视频,还有图片、音声和文本等

实现步骤

  1. 增加CustomPlayer继承于IPlayer
  2. 每个播放器可配置以下属性
    1. 可执行文件路径
    2. 启动命令模板
      1. 提供files数组参数,规则待定
  3. Resolver可以与IPlayer绑定

可能的问题

实现步骤2可能会有兼容性问题和配置难度,待定

@anobaka anobaka added the enhancement New feature or request label Dec 16, 2021
@anobaka anobaka self-assigned this Dec 16, 2021
@anobaka anobaka changed the title 自定义视频播放器 自定义播放器 Dec 17, 2021
@anobaka anobaka added feature and removed enhancement New feature or request labels Dec 17, 2021
@anobaka anobaka added this to the v1.0.4 milestone Dec 17, 2021
@anobaka
Copy link
Owner Author

anobaka commented Dec 19, 2021

不同播放器对于播放列表的支持规则不同,暂时移除加载播放列表功能,统一变更为单文件播放

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

No branches or pull requests

1 participant