background-image: url(../icons/control_stop.png) !important;
}
+.control_mute {
+ background-image: url(../icons/sound_mute.png) !important;
+}
+
.control_volume {
background-image: url(../icons/sound.png) !important;
}
'-',
selectProfile,
'-',
+ {
+ iconCls: 'control_mute',
+ tooltip: _('Toggle mute'),
+ handler: function() {
+ var muted = videoPlayer.muteToggle();
+ slider.setDisabled(muted);
+ sliderLabel.setDisabled(muted);
+ }
+ },
{
iconCls: 'control_volume',
tooltip: _('Volume'),
--- /dev/null
+../../../../vendor/famfamsilk/sound_mute.png
\ No newline at end of file
this.video.dom.pause();
},
+ muteToggle: function() {
+ this.video.dom.muted = !this.video.dom.muted;
+ return this.video.dom.muted;
+ },
+
setVolume: function(vol) {
this.video.dom.volume = vol / 100.0;
},