Skip to content

Commit

Permalink
feat(xgplayer): 字幕配置注释
Browse files Browse the repository at this point in the history
  • Loading branch information
hongqiongxing-b committed Mar 2, 2021
1 parent 1d90a27 commit 05be929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xgplayer/src/skin/controls/textTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const defaultStyle = {
baseSizeY: 28, //竖屏视频适配基准字号
minSize: 16, //pc端最小字号
minMobileSize: 13, //移动端最小字号
line: 'double' //最大显示行数 single/double/three
line: 'double', //最大显示行数 single/double/three
fontColor: '#fff' // 字体颜色
}

function createSubTitle (textTrack, style = {}, defaultOpen = true) {
Expand Down

0 comments on commit 05be929

Please sign in to comment.