no stream prefix for now
This commit is contained in:
parent
4640b934cd
commit
e89d8fd13d
1 changed files with 8 additions and 8 deletions
|
@ -168,13 +168,13 @@ function renderAnnotation(config, video, root, clip) {
|
|||
}
|
||||
var values = []
|
||||
clip.annotations.forEach(a => {
|
||||
values.push(a.value.replace(/src="\//g, `src="${streamPrefix}/`).replace(/href="\//g, `href="${pandoraURL}/`))
|
||||
values.push(a.value.replace(/src="\//g, `src="${pandoraURL}/`).replace(/href="\//g, `href="${pandoraURL}/`))
|
||||
})
|
||||
values = values.join('<br><br>')
|
||||
div.innerHTML = `
|
||||
<div class="frame">
|
||||
<figure>
|
||||
<img src="${streamPrefix}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg">
|
||||
<img src="${pandoraURL}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg">
|
||||
${figcaption}
|
||||
</figure>
|
||||
</div>
|
||||
|
@ -187,7 +187,7 @@ function renderAnnotation(config, video, root, clip) {
|
|||
if (clip.src) {
|
||||
src = clip.src
|
||||
} else if (config.edit) {
|
||||
src = `${streamPrefix}/${annotation.id.split('/')[0]}/480p.webm`
|
||||
src = `${pandoraURL}/${annotation.id.split('/')[0]}/480p.webm`
|
||||
}
|
||||
if (config.loaded && visible) {
|
||||
updatePlayer(video, frame, annotation['in'], annotation['out'], src, config)
|
||||
|
@ -213,7 +213,7 @@ function renderAnnotations(config) {
|
|||
video.WebKitPlaysInline = true
|
||||
video.muted = true
|
||||
if (config.item) {
|
||||
setVideoSrc(video, `${streamPrefix}/${config.item}/480p.webm`)
|
||||
setVideoSrc(video, `${pandoraURL}/${config.item}/480p.webm`)
|
||||
}
|
||||
video.addEventListener('timeupdate', timeupdate)
|
||||
video.addEventListener('touchstart', showOverlay)
|
||||
|
@ -233,7 +233,7 @@ function renderAnnotations(config) {
|
|||
if (frame) {
|
||||
var src
|
||||
if (config.edit) {
|
||||
src = `${streamPrefix}/${config.first.id.split('/')[0]}/480p.webm`
|
||||
src = `${pandoraURL}/${config.first.id.split('/')[0]}/480p.webm`
|
||||
}
|
||||
updatePlayer(video, frame, config.first['in'], config.first['out'], src, config)
|
||||
}
|
||||
|
@ -390,7 +390,7 @@ async function loadAnnotations(config) {
|
|||
function renderSingleMode(config) {
|
||||
var src
|
||||
config.annotations.forEach(annotation => {
|
||||
src = annotation.src = `${streamPrefix}/${annotation.id.split('/')[0]}/480p.webm`
|
||||
src = annotation.src = `${pandoraURL}/${annotation.id.split('/')[0]}/480p.webm`
|
||||
})
|
||||
var div = document.createElement('div')
|
||||
var annotation = config.annotations[0].annotations[0]
|
||||
|
@ -400,7 +400,7 @@ function renderSingleMode(config) {
|
|||
div.innerHTML = `
|
||||
<div class="frame">
|
||||
<figure>
|
||||
<img src="${streamPrefix}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg">
|
||||
<img src="${pandoraURL}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg">
|
||||
${figcaption}
|
||||
</figure>
|
||||
</div>
|
||||
|
@ -422,7 +422,7 @@ function renderSingleMode(config) {
|
|||
config.annotations.forEach(clip => {
|
||||
var values = []
|
||||
clip.annotations.forEach(a => {
|
||||
values.push(a.value.replace(/src="\//g, `src="${streamPrefix}/`).replace(/href="\//g, `href="${pandoraURL}/`))
|
||||
values.push(a.value.replace(/src="\//g, `src="${pandoraURL}/`).replace(/href="\//g, `href="${pandoraURL}/`))
|
||||
})
|
||||
values = values.join('<br><br>')
|
||||
var annot = document.createElement('div')
|
||||
|
|
Loading…
Reference in a new issue