Skip to content

Commit

Permalink
Merge pull request #175 from roballsopp/dev
Browse files Browse the repository at this point in the history
support loading older cue format
  • Loading branch information
roballsopp authored Nov 8, 2023
2 parents 72db85f + 09379da commit 5c4908f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/services/vtt.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ export function getCuesFromStorage() {
return parsed.map((c) => {
const cue = new VTTCue(c.startTime, c.endTime, c.text)
cue.id = c.id
cue.align = c.align
cue.line = c.line
cue.lineAlign = c.lineAlign
cue.position = c.position
cue.positionAlign = c.positionAlign
cue.region = c.region
cue.size = c.size
cue.snapToLines = c.snapToLines
cue.vertical = c.vertical
if (c.align) cue.align = c.align
if (c.line) cue.line = c.line
if (c.lineAlign) cue.lineAlign = c.lineAlign
if (c.position) cue.position = c.position
if (c.positionAlign) cue.positionAlign = c.positionAlign
if (c.region) cue.region = c.region
if (c.size) cue.size = c.size
if (c.snapToLines) cue.snapToLines = c.snapToLines
if (c.vertical) cue.vertical = c.vertical
return cue
})
}

0 comments on commit 5c4908f

Please sign in to comment.