attempt side-by-side video/text

This commit is contained in:
j 2022-01-28 18:48:26 +00:00
commit 0c73e90751
2 changed files with 46 additions and 19 deletions

View file

@ -208,12 +208,18 @@ function renderPlayer(config) {
box.classList.add('vbox')
box.appendChild(video)
config.info = formatInfo(config, player)
player.appendChild(box)
var stage = document.createElement('div')
stage.classList.add('stage')
stage.appendChild(box)
var div = document.createElement('div')
div.classList.add('annotations')
config.annotations.forEach(annotation => {
renderAnnotation(config, video, player, annotation)
renderAnnotation(config, video, div, annotation)
})
stage.appendChild(div)
player.appendChild(stage)
config.loaded = true
}