Add README

This commit is contained in:
Chocobozzz
2020-08-21 15:04:10 +02:00
parent aec0c866d5
commit e7ee7c6d6c
5 changed files with 37 additions and 10 deletions

View File

@ -56,12 +56,15 @@ function buildAnnotation (text) {
const align = options && options.align ? options.align : 'top-right'
return {
start: timestamps.start,
end: timestamps.end,
const result = {
align,
content
}
result.start = timestamps.start || 0
result.end = timestamps.end || video.duration
return result
}
function buildTimestamps (text) {