plv player sdk doc
载入中...
搜索中...
未找到
Public 成员函数 | 成员变量
PLVSubtitleConfigInfo结构体 参考

#include <plv-player-def-CN.h>

Public 成员函数

 PLVSubtitleConfigInfo ()
 

成员变量

const char * textFont
 字体名称, 默认值 sans-serif.
 
int textSize
 字体大小, [1, 255], 默认值 38.
 
const char * textColor
 字体颜色值 ARGB, 默认值 #FFFFFFFF.
 
int borderSize
 描边大小, [0, 55], 0 值时描边失效 ,默认值 2.
 
const char * borderColor
 描边颜色值 ARGB, 默认值 #FF000000.
 
const char * backgroundColor
 背景颜色值 ARGB, 默认值 #00000000.
 
int alignX
 [-1 0 1] 水平位置 左中右, 默认值 0.
 
int alignY
 [-1 0 1] 垂直位置 上中下, 默认值 1.
 
int posY
 [0-150] 垂直位置调整, 仅 alignY = 1 时有效, 默认值100.
 
bool scaleByWindow
 是否跟随窗口大小缩放字幕, 默认值 true.
 
bool visible
 字幕是否可见, 默认值 true.
 

详细描述

字幕配置信息结构.

在文件 plv-player-def-CN.h360 行定义.

构造及析构函数说明

◆ PLVSubtitleConfigInfo()

在文件 plv-player-def-CN.h361 行定义.

结构体成员变量说明

◆ alignX

int alignX

[-1 0 1] 水平位置 左中右, 默认值 0.

在文件 plv-player-def-CN.h381 行定义.

◆ alignY

int alignY

[-1 0 1] 垂直位置 上中下, 默认值 1.

在文件 plv-player-def-CN.h382 行定义.

◆ backgroundColor

const char* backgroundColor

背景颜色值 ARGB, 默认值 #00000000.

在文件 plv-player-def-CN.h380 行定义.

◆ borderColor

const char* borderColor

描边颜色值 ARGB, 默认值 #FF000000.

在文件 plv-player-def-CN.h379 行定义.

◆ borderSize

int borderSize

描边大小, [0, 55], 0 值时描边失效 ,默认值 2.

在文件 plv-player-def-CN.h378 行定义.

◆ posY

int posY

[0-150] 垂直位置调整, 仅 alignY = 1 时有效, 默认值100.

在文件 plv-player-def-CN.h383 行定义.

◆ scaleByWindow

bool scaleByWindow

是否跟随窗口大小缩放字幕, 默认值 true.

在文件 plv-player-def-CN.h384 行定义.

◆ textColor

const char* textColor

字体颜色值 ARGB, 默认值 #FFFFFFFF.

在文件 plv-player-def-CN.h377 行定义.

◆ textFont

const char* textFont

字体名称, 默认值 sans-serif.

在文件 plv-player-def-CN.h375 行定义.

◆ textSize

int textSize

字体大小, [1, 255], 默认值 38.

在文件 plv-player-def-CN.h376 行定义.

◆ visible

bool visible

字幕是否可见, 默认值 true.

在文件 plv-player-def-CN.h385 行定义.


该结构体的文档由以下文件生成: