comparison interfaces/timeline.js @ 2726:c74c698795a9

#163. Fixed
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Sat, 15 Apr 2017 12:05:31 +0100
parents a684dc7a5327
children cae61c5bbed1
comparison
equal deleted inserted replaced
2725:9c01d5dd22a2 2726:c74c698795a9
428 }; 428 };
429 this.startPlayback = function () { 429 this.startPlayback = function () {
430 // Called when playback has begun 430 // Called when playback has begun
431 canvasIntervalID = window.setInterval(this.canvas.drawTicker.bind(this.canvas), 100); 431 canvasIntervalID = window.setInterval(this.canvas.drawTicker.bind(this.canvas), 100);
432 this.playButton.DOM.textContent = "Stop"; 432 this.playButton.DOM.textContent = "Stop";
433 interfaceContext.commentBoxes.highlightById(audioObject.id);
433 }; 434 };
434 this.stopPlayback = function () { 435 this.stopPlayback = function () {
435 // Called when playback has stopped. This gets called even if playback never started! 436 // Called when playback has stopped. This gets called even if playback never started!
436 window.clearInterval(canvasIntervalID); 437 window.clearInterval(canvasIntervalID);
437 this.canvas.clearCanvas(this.canvas.layer2); 438 this.canvas.clearCanvas(this.canvas.layer2);
438 this.playButton.DOM.textContent = "Play"; 439 this.playButton.DOM.textContent = "Play";
440 var box = interfaceContext.commentBoxes.boxes.find(function (a) {
441 return a.id === audioObject.id;
442 });
443 if (box) {
444 box.highlight(false);
445 }
439 }; 446 };
440 this.getValue = function () { 447 this.getValue = function () {
441 // Return the current value of the object. If there is no value, return 0 448 // Return the current value of the object. If there is no value, return 0
442 return 0; 449 return 0;
443 }; 450 };