equal
deleted
inserted
replaced
47 IriSP.Widgets.MediaList.prototype.onSearch = function(searchString) { |
47 IriSP.Widgets.MediaList.prototype.onSearch = function(searchString) { |
48 this.searchString = typeof searchString !== "undefined" ? searchString : ''; |
48 this.searchString = typeof searchString !== "undefined" ? searchString : ''; |
49 var _n = this.refresh(true); |
49 var _n = this.refresh(true); |
50 if (this.searchString) { |
50 if (this.searchString) { |
51 if (_n) { |
51 if (_n) { |
52 this.player.popcorn.trigger("IriSP.search.matchFound"); |
52 this.player.trigger("search.matchFound"); |
53 } else { |
53 } else { |
54 this.player.popcorn.trigger("IriSP.search.noMatchFound"); |
54 this.player.trigger("search.noMatchFound"); |
55 } |
55 } |
56 } |
56 } |
57 } |
57 } |
58 |
58 |
59 IriSP.Widgets.MediaList.prototype.draw = function() { |
59 IriSP.Widgets.MediaList.prototype.draw = function() { |
60 this.bindPopcorn("timeupdate","onTimeupdate"); |
60 this.onMediaEvent("timeupdate","onTimeupdate"); |
61 this.$.addClass("Ldt-MediaListWidget") |
61 this.$.addClass("Ldt-MediaListWidget") |
62 this.renderTemplate(); |
62 this.renderTemplate(); |
63 this.redraw(); |
63 this.redraw(); |
64 }; |
64 }; |
65 |
65 |
122 } else { |
122 } else { |
123 this.$.find('.Ldt-MediaList-Other').hide(); |
123 this.$.find('.Ldt-MediaList-Other').hide(); |
124 } |
124 } |
125 }; |
125 }; |
126 |
126 |
127 IriSP.Widgets.MediaList.prototype.onTimeupdate = function() { |
127 IriSP.Widgets.MediaList.prototype.onTimeupdate = function(_time) { |
128 var _media = this.source.currentMedia; |
128 var _media = this.source.currentMedia; |
129 if (_media.elementType === "mashup") { |
129 if (_media.elementType === "mashup") { |
130 _media = _media.getMediaAtTime(this.player.popcorn.currentTime() * 1000); |
130 _media = _media.getMediaAtTime(_time); |
131 } |
131 } |
132 if (typeof _media !== "undefined" && _media.id !== this.lastMedia) { |
132 if (typeof _media !== "undefined" && _media.id !== this.lastMedia) { |
133 this.lastMedia = _media.id; |
133 this.lastMedia = _media.id; |
134 this.redraw(_media); |
134 this.redraw(_media); |
135 } |
135 } |