前情提要:尝试做了个 mpv 播放器的图形界面 - ImPlay
在那之后过了 1 个多月了,终于把功能完善的差不多、并且准备好构建叫不能,可以拿出来给大家试试了。
预编译版本下载地址: https://github.com/tsl0922/ImPlay/releases
Release 下有每个平台的安装方法。
功能特性
从 README 复制过来的,懒得再逐个翻译了。
-
Highly compatible with mpv
- GPU Video Decoding
- High Quality Video Output
- Lua and Javascript Scripting
- User Scripts and Config Files
- Command Line Interface
- Keyboard / Mouse Control
-
On Screen Controler (OSC)
- Compatible with popular OSC scripts: mpv-osc-modern, thumbfast
- Take Video Screenshot
- Used as Image Viewer
-
Graphical User Interface
- Context Menu with most commonly used commands
- Command Palette to quickly search commands and keys
- Open Dialog for Media Files / Folders
- Open URL / Path from Clipboard
- Open DVD / Blu-ray Folder and ISO Image
- Playlist Editing: Add, Clear, Shuffle
- Shadow and Rounding effect for Interface
-
Scripting Developer Friendly
- Visual view of mpv's internal properties
- Console with completion, history support
- Colorful mpv logs view with filter support
- Cross platform: Window, Linux, macOS
界面截图
应上个帖子网友要求,加了圆角和阴影。
- 右键菜单:基本包含了最常使用的功能

- 命令面板:支持多种数据源,默认为快捷键绑定列表,还可以显示播放列表(可以搜索,对于打开 m3u 类的直播源播放列表很有用)

- 调试窗口:(插件)开发神器,能显示 mpv 的内部属性,带颜色的实时日志,还可以执行命令(支持补全和历史)。

新手写了 1 个月的 C++ 感受:发现还是有点点按照 C 的风格来写代码。有标准库确实稍微方便了一点点,不过 C++ 的标准库也真的是一言难尽,比如 string 很多常用的方法都没有。(楼主有一定 C 语言基础(写过 ttyd),C++ 是现学现卖的)