equal
deleted
inserted
replaced
177 |
177 |
178 if (!this.ajax_mode) { |
178 if (!this.ajax_mode) { |
179 this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.drawList(true); })); |
179 this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.drawList(true); })); |
180 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.redraw)); |
180 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.redraw)); |
181 } else { |
181 } else { |
|
182 /* update the widget when the video has finished loading and when it's seeked and paused */ |
182 this._Popcorn.listen("seeked", IriSP.wrap(this, this.ajaxRedraw)); |
183 this._Popcorn.listen("seeked", IriSP.wrap(this, this.ajaxRedraw)); |
|
184 this._Popcorn.listen("loadedmetadata", IriSP.wrap(this, this.ajaxRedraw)); |
183 this._Popcorn.listen("paused", IriSP.wrap(this, this.ajaxRedraw)); |
185 this._Popcorn.listen("paused", IriSP.wrap(this, this.ajaxRedraw)); |
184 } |
186 } |
185 |
187 |
186 }; |
188 }; |
187 |
189 |