Skip to content

Commit

Permalink
Fix time indicator to be hidden when displaying images.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacurtiss committed May 1, 2018
1 parent 85a66f4 commit f9ce54d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,7 @@ function mountPlaylistItem(li,videoIndex=0,cueIndex=0,start=false) {
.replace("(","%28")
.replace(")","%29");
if( item.list.length-1>=cueIndex ) {
$(".curTime").css("visibility","visible");
if( videoController.src!=`file://${os.type()=="Darwin"?"":"/"}${escapedPath}` ) videoController.src=escapedPath;
else setCueListHeight();
videoController.currentTime=Math.ceil(parseFloat(item.list[cueIndex].start)*100)/100;
Expand All @@ -1227,6 +1228,7 @@ function mountPlaylistItem(li,videoIndex=0,cueIndex=0,start=false) {
$cueIcon.addClass("fa-pause-circle");
}
} else if( item.isImage() ) {
$(".curTime").css("visibility","hidden");
videoController.src="";
videoController.currentTime=0;
videoController.set("data-cue-index",-1); // Set to -1 to keep checkVideo from messing with it.
Expand Down

0 comments on commit f9ce54d

Please sign in to comment.