attempt side-by-side video/text
This commit is contained in:
parent
e27bd125ac
commit
0c73e90751
2 changed files with 46 additions and 19 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue