We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8201f31 commit d28befdCopy full SHA for d28befd
src/timeline/js/controllers.js
@@ -754,6 +754,10 @@ App.controller('TimelineCtrl',function($scope) {
754
755
// Format the thumbnail path: http://127.0.0.1:8081/thumbnails/FILE-ID/FRAME-NUMBER/
756
$scope.GetThumbPath = function(clip) {
757
+ var has_video = clip["reader"]["has_video"];
758
+ var has_audio = clip["reader"]["has_audio"];
759
+ if (!has_video && has_audio)
760
+ return "../images/AudioThumbnail.png";
761
var file_fps = clip["reader"]["fps"]["num"] / clip["reader"]["fps"]["den"];
762
return $scope.ThumbServer + clip.file_id + "/" + ((file_fps * clip.start) + 1) + "/";
763
};
0 commit comments