equal
deleted
inserted
replaced
155 function() { |
155 function() { |
156 _this.player.trigger("Player.MouseOut"); |
156 _this.player.trigger("Player.MouseOut"); |
157 }); |
157 }); |
158 |
158 |
159 this.timeDisplayUpdater(new IriSP.Model.Time(0)); |
159 this.timeDisplayUpdater(new IriSP.Model.Time(0)); |
160 /* some players - including jwplayer - save the state of the mute button between sessions */ |
|
161 //TODO: MOVE TO THE PLAYER/ |
|
162 window.setTimeout(this.functionWrapper("volumeUpdater"), 1000); |
|
163 |
160 |
164 }; |
161 }; |
165 |
162 |
166 /* Update the elasped time div */ |
163 /* Update the elasped time div */ |
167 IriSP.Widgets.Controller.prototype.timeDisplayUpdater = function(_time) { |
164 IriSP.Widgets.Controller.prototype.timeDisplayUpdater = function(_time) { |
199 this.media.pause(); |
196 this.media.pause(); |
200 } |
197 } |
201 }; |
198 }; |
202 |
199 |
203 IriSP.Widgets.Controller.prototype.muteHandler = function() { |
200 IriSP.Widgets.Controller.prototype.muteHandler = function() { |
204 if (this.media.getMuted()) { |
201 this.media.setMuted(!this.media.getMuted()); |
205 this.media.unmute(); |
|
206 } else { |
|
207 this.media.mute(); |
|
208 } |
|
209 }; |
202 }; |
210 |
203 |
211 IriSP.Widgets.Controller.prototype.volumeUpdater = function() { |
204 IriSP.Widgets.Controller.prototype.volumeUpdater = function() { |
212 var _muted = this.media.getMuted(), |
205 var _muted = this.media.getMuted(), |
213 _vol = this.media.getVolume(); |
206 _vol = this.media.getVolume(); |