fix open-video class
parent
493ee9678f
commit
46b14dba11
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue