aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/TagTool.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js
index 27665ee6..80e6150d 100755
--- a/js/tools/TagTool.js
+++ b/js/tools/TagTool.js
@@ -118,14 +118,14 @@ exports.TagTool = Montage.create(DrawingTool, {
118 handleCanplay: { 118 handleCanplay: {
119 value: function(event) { 119 value: function(event) {
120 //TODO: Figure out why the video must be seeked to the end before pausing 120 //TODO: Figure out why the video must be seeked to the end before pausing
121 var time = Math.ceil(this.duration); 121 var time = Math.ceil(event.target.duration);
122 //Trying to display the last frame (doing minus 2 seconds if long video) 122 //Trying to display the last frame (doing minus 2 seconds if long video)
123 if (time > 2) { 123 if (time > 2) {
124 this.currentTime = time - 2; 124 event.target.currentTime = time - 2;
125 } else if (time > 1) { 125 } else if (time > 1) {
126 this.currentTime = time - 1; 126 event.target.currentTime = time - 1;
127 } else { 127 } else {
128 this.currentTime = time || 0; 128 event.target.currentTime = time || 0;
129 } 129 }
130 //Pauing video 130 //Pauing video
131 event.target.pause(); 131 event.target.pause();