Skip to content

Commit

Permalink
feat(CEA): Add support to vertical position
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 24, 2023
1 parent 4235658 commit 1aa5a1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cea/cea608_memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ shaka.cea.Cea608Memory = class {
const stream = `CC${(this.fieldNum_<< 1) | this.channelNum_ +1}`;
const topLevelCue = new shaka.text.Cue(
startTime, endTime, /* payload= */ '');
topLevelCue.lineInterpretation =
shaka.text.Cue.lineInterpretation.PERCENTAGE;
const maxRows = shaka.cea.Cea608Memory.CC_ROWS + 1;
topLevelCue.line = this.row_ / maxRows * 100;
return shaka.cea.CeaUtils.getParsedCaption(
topLevelCue, stream, this.rows_, startTime, endTime);
}
Expand Down

0 comments on commit 1aa5a1c

Please sign in to comment.