Skip to content

Commit

Permalink
fix(WebVTT): Add support to middle position (#5366)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jun 28, 2023
1 parent 35cb193 commit 5691d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/text/vtt_text_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,8 @@ shaka.text.VttTextParser = class {
} else if ((results = /^size:([\d.]+)%$/.exec(word))) {
cue.size = Number(results[1]);
} else if ((results =
/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/
// eslint-disable-next-line max-len
/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end))?$/
.exec(word))) {
cue.position = Number(results[1]);
if (results[2]) {
Expand Down

0 comments on commit 5691d5e

Please sign in to comment.