fix open-video class

node-20
Moe 2023-08-04 21:43:00 -07:00
parent 493ee9678f
commit 46b14dba11
1 changed files with 4 additions and 1 deletions

View File

@ -631,9 +631,11 @@ function getVideoInfoFromEl(_this){
var el = $(_this).parents('[data-mid]') var el = $(_this).parents('[data-mid]')
var monitorId = el.attr('data-mid') var monitorId = el.attr('data-mid')
var videoTime = el.attr('data-time') var videoTime = el.attr('data-time')
var video = loadedVideosInMemory[`${monitorId}${videoTime}${undefined}`]
return { return {
monitorId, monitorId,
videoTime, videoTime,
video,
} }
} }
onWebSocketEvent(function(d){ onWebSocketEvent(function(d){
@ -662,11 +664,12 @@ $(document).ready(function(){
$('body') $('body')
.on('click','.open-video',function(e){ .on('click','.open-video',function(e){
e.preventDefault() e.preventDefault()
var _this = this;
var { var {
monitorId, monitorId,
videoTime, videoTime,
video, video,
} = getVideoInfoFromEl(this) } = getVideoInfoFromEl(_this)
createVideoPlayerTab(video) createVideoPlayerTab(video)
setVideoStatus(video) setVideoStatus(video)
return false; return false;