fix timeline view of cloud videos
parent
e86fcd73cd
commit
a9b381909e
|
|
@ -467,7 +467,7 @@ $(document).ready(function(){
|
|||
function setVideoInCanvas(newVideo){
|
||||
var monitorId = newVideo.mid
|
||||
var container = getVideoContainerInCanvas(newVideo)
|
||||
.removeClass('no-video').find('.film').html(`<video muted src="${getApiPrefix('videos')}/${monitorId}/${newVideo.filename}"></video>`)
|
||||
.removeClass('no-video').find('.film').html(`<video muted src="${newVideo.href}"></video>`)
|
||||
var vidEl = getVideoElInCanvas(newVideo)
|
||||
var objectContainer = getObjectContainerInCanvas(newVideo)
|
||||
vidEl.playbackRate = timelineSpeed
|
||||
|
|
|
|||
|
|
@ -540,7 +540,7 @@ function getVideos(options,callback,noEvents){
|
|||
$.getJSON(`${getApiPrefix(customVideoSet ? customVideoSet : searchQuery ? `videosByEventTag` : `videos`)}${monitorId ? `/${monitorId}` : ''}?${requestQueries.concat([limit ? `limit=${limit}` : `noLimit=1`]).join('&')}`,function(data){
|
||||
var videos = data.videos.map((video) => {
|
||||
return Object.assign({},video,{
|
||||
href: getFullOrigin(true) + video.href
|
||||
href: `${getFullOrigin(true) + video.href}${customVideoSet === 'cloudVideos' ? `?type=${video.type}` : ''}`
|
||||
})
|
||||
})
|
||||
$.getJSON(`${getApiPrefix(`timelapse`)}${monitorId ? `/${monitorId}` : ''}?${requestQueries.concat([`noLimit=1`]).join('&')}`,function(timelapseFrames){
|
||||
|
|
|
|||
Loading…
Reference in New Issue