src/widgets/Controller.js
changeset 970 b1c3bf6eca78
parent 960 9a278b9e3b05
child 982 cfcbac34d020
--- a/src/widgets/Controller.js	Tue Oct 02 18:08:05 2012 +0200
+++ b/src/widgets/Controller.js	Wed Oct 24 11:08:31 2012 +0200
@@ -157,9 +157,6 @@
         });
     
     this.timeDisplayUpdater(new IriSP.Model.Time(0));
-    /* some players - including jwplayer - save the state of the mute button between sessions */
-   //TODO: MOVE TO THE PLAYER/
-    window.setTimeout(this.functionWrapper("volumeUpdater"), 1000);
    
 };
 
@@ -201,11 +198,7 @@
 };
 
 IriSP.Widgets.Controller.prototype.muteHandler = function() {
-    if (this.media.getMuted()) {
-        this.media.unmute();
-    } else {
-        this.media.mute();
-    }
+    this.media.setMuted(!this.media.getMuted());
 };
 
 IriSP.Widgets.Controller.prototype.volumeUpdater = function() {