Fix Power Video player

disk-divisor
Moe 2022-11-10 08:48:44 -08:00
parent 494dc65fcc
commit 213f391675
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ $(document).ready(function(e){
chartData.push({
group: loadedTableGroupIds[monitorId],
content: `<div timeline-video-file="${video.mid}${video.time}">
${video.time}
${formattedTime(video.time, 'hh:mm:ss AA, DD-MM-YYYY')}
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" style="width:0%;"><span></span></div>
</div>

View File

@ -67,7 +67,7 @@ function createVideoLinks(video,options){
video.ext = video.href.split('.')
video.ext = video.ext[video.ext.length - 1]
}
video.filename = formattedTimeForFilename(video.time,null,`YYYY-MM-DDTHH-mm-ss`) + '.' + video.ext;
video.filename = formattedTimeForFilename(convertTZ(video.time, serverTimezone),null,`YYYY-MM-DDTHH-mm-ss`) + '.' + video.ext;
var href = getApiPrefix('videos') + '/'+video.mid+'/'+video.filename;
video.actionUrl = href
video.links = {