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 and joeyparrish committed Jul 20, 2023
1 parent 5118b24 commit 5fc095c
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 @@ -785,7 +785,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 5fc095c

Please sign in to comment.