# 插件大全

提醒

v0.3.6版本后只需要配置相应插件,kplayer将会自动从插件商城中下载并使用插件。无需手动下载插件

若使用的是第三方插件并未收录在插件商城中,则需要您手动下载符合版本要求的插件

# VideoShowTextPlugin

VideoShowTextPlugin 提供视频播放过程中,在指定位置显示指定文本

plugin:
  - file: "libVideoShowTextPlugin"
    params:
      font_size: "17"     # 字号
      font_color: "white" # 颜色属性
      text: "文本" # 显示文本 
      x: "100" # x坐标 
      y: "100" # y坐标
1
2
3
4
5
6
7
8

# VideoShowCurrentTimePlugin

VideoShowCurrentTimePlugin提供视频播放过程中,在左上角显示当前系统时间插件

plugin:
  - file: "libVideoShowCurrentTimePlugin"
    params:
      x: "100"  # x坐标
      y: "100"  # y坐标
      font_size: "17"     # 字号
      font_color: "white" # 颜色属性
1
2
3
4
5
6
7

# VideoShowFileNamePlugin

VideoShowFileNamePlugin提供视频播放过程中,在左上角显示当前播放文件名称。

version: "1.0"
plugin:
  - file: "libVideoShowFileNamePlugin"
    params:
      x: "100"  # x坐标
      y: "100"  # y坐标
      show_extension: false  # 是否显示文件扩展名
      font_size: "17"     # 字号
      font_color: "white" # 颜色属性
1
2
3
4
5
6
7
8
9

# libVideoShowSubtitlePlugin

libVideoShowSubtitlePlugin,自动寻找视频同级目录的字幕文件,1.2.0与1.2.0以下版本仅支持srt字幕文件。1.3.0以上支持ass,srt,lrc字幕文件

plugin:
  - file: "libVideoShowSubtitlePlugin"
1
2

# VideoShowImagePlugin

VideoShowImagePlugin提供视频播放过程中,指定位置添加图片水印

plugin:
  - file: "libVideoShowImagePlugin"
    params:
      path: "img.png"     # 图片路径
      x: "100" # x坐标
      y: "100" # y坐标
1
2
3
4
5
6

# VideoShowPlayListPlugin

VideoShowPlayListPlugin提供视频播放过程中,指定位置添加当前播放媒体资源列表打印

plugin:
  - file: "libVideoShowPlayListPlugin"
    params:
      font_size: 17 # 字体大小
      font_color: white # 文字颜色
      x: "100" # x坐标
      y: "100" # y坐标
      line_height: 15 # 上下行间距
      show_extension: false # 是否显示文件扩展名(后缀名)
      count: 5 # 设置显示至多媒体文件数量
1
2
3
4
5
6
7
8
9
10