a:35:{s:9:"#provides";s:28:"dojox.av.widget.VolumeButton";s:9:"#resource";s:25:"av/widget/VolumeButton.js";s:9:"#requires";a:3:{i:0;a:3:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";i:2;s:5:"dijit";}i:1;a:3:{i:0;s:6:"common";i:1;s:16:"dijit._Templated";i:2;s:5:"dijit";}i:2;a:3:{i:0;s:6:"common";i:1;s:17:"dijit.form.Button";i:2;s:5:"dijit";}}s:28:"dojox.av.widget.VolumeButton";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Templated.prototype";}}s:7:"summary";s:50:"A volume widget to use with dojox.av.widget.Player";s:11:"description";s:165:"Controls and displays the volume of the media. This widget opens a slider on click that is used to adjust the volume. The icon changes according to the volume level.";s:9:"classlike";b:1;}s:41:"dojox.av.widget.VolumeButton.templatePath";a:2:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:39:"dojox.av.widget.VolumeButton.postCreate";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:236:" this.handleWidth = dojo.marginBox(this.handle).w; this.width = dojo.marginBox(this.volumeSlider).w; this.slotWidth = 100; dojo.setSelectable(this.handle, false); this.volumeSlider = this.domNode.removeChild(this.volumeSlider);";s:7:"summary";s:22:"Initialize the widget.";}s:37:"dojox.av.widget.VolumeButton.setMedia";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"med";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:40:" this.media = med; this.updateIcon();";s:7:"summary";s:95:"A common method to set the media in all Player widgets. May do connections and initializations.";}s:39:"dojox.av.widget.VolumeButton.updateIcon";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"vol";a:1:{s:4:"type";s:5:"Float";}}s:6:"source";s:332:" vol = (vol===undefined) ? this.media.volume() : vol; if(vol===0){ dojo.attr(this.domNode, "class", "Volume mute"); }else if(vol<.334){ dojo.attr(this.domNode, "class", "Volume low"); }else if(vol<.667){ dojo.attr(this.domNode, "class", "Volume med"); }else{ dojo.attr(this.domNode, "class", "Volume high"); }";s:7:"summary";s:57:"Changes the icon on the button according to volume level.";}s:41:"dojox.av.widget.VolumeButton.onShowVolume";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:8:"DOMEvent";}}s:6:"source";s:831:" if(this.showing==undefined){ dojo.body().appendChild(this.volumeSlider); this.showing = false; } if(!this.showing){ var TOPMARG = 2; var LEFTMARG = 7; var vol = this.media.volume(); var dim = this._getVolumeDim(); var hand = this._getHandleDim(); this.x = dim.x - this.width; dojo.style(this.volumeSlider, "display", ""); dojo.style(this.volumeSlider, "top", dim.y+"px"); dojo.style(this.volumeSlider, "left", (this.x)+"px"); var x = (this.slotWidth * vol); dojo.style(this.handle, "top", (TOPMARG+(hand.w/2))+"px"); dojo.style(this.handle, "left", (x+LEFTMARG+(hand.h/2))+"px"); this.showing = true; //this.startDrag(); this.clickOff = dojo.connect(dojo.doc, "onmousedown", this, "onDocClick"); }else{ this.onHideVolume(); }";s:7:"summary";s:24:"Shows the volume slider.";}s:39:"dojox.av.widget.VolumeButton.onDocClick";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:8:"DOMEvent";}}s:6:"source";s:134:" if(!dojo.isDescendant(evt.target, this.domNode) && !dojo.isDescendant(evt.target, this.volumeSlider)){ this.onHideVolume(); }";s:7:"summary";s:78:"Fired on document.onmousedown. Checks if clicked inside of this widget or not.";}s:41:"dojox.av.widget.VolumeButton.onHideVolume";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:93:" this.endDrag(); dojo.style(this.volumeSlider, "display", "none"); this.showing = false;";s:7:"summary";s:20:"Hides volume slider.";}s:35:"dojox.av.widget.VolumeButton.onDrag";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:8:"DOMEvent";}}s:6:"source";s:260:" var beg = this.handleWidth/2; var end = beg + this.slotWidth var x = evt.clientX - this.x; if(xend) x=end; dojo.style(this.handle, "left", (x)+"px"); var p = (x-beg)/(end-beg); this.media.volume(p); this.updateIcon(p);";s:7:"summary";s:65:"Fired on mousemove. Updates volume and position of slider handle.";}s:38:"dojox.av.widget.VolumeButton.startDrag";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:158:" this.isDragging = true; this.cmove = dojo.connect(dojo.doc, "mousemove", this, "onDrag"); this.cup = dojo.connect(dojo.doc, "mouseup", this, "endDrag");";s:7:"summary";s:40:"Fired on mousedown of the slider handle.";}s:36:"dojox.av.widget.VolumeButton.endDrag";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:134:" this.isDragging = false; if(this.cmove) dojo.disconnect(this.cmove); if(this.cup) dojo.disconnect(this.cup); this.handleOut();";s:7:"summary";s:38:"Fired on mouseup of the slider handle.";}s:39:"dojox.av.widget.VolumeButton.handleOver";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:37:" dojo.addClass(this.handle, "over");";s:7:"summary";s:77:"Highlights the slider handle on mouseover, and stays highlighted during drag.";}s:38:"dojox.av.widget.VolumeButton.handleOut";a:4:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:70:" if(!this.isDragging){ dojo.removeClass(this.handle, "over"); }";s:7:"summary";s:47:"Unhighlights handle onmouseover, or on endDrag.";}s:42:"dojox.av.widget.VolumeButton._getVolumeDim";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:127:" if(this._domCoords){ return this._domCoords; } this._domCoords = dojo.coords(this.domNode); return this._domCoords; ";s:7:"summary";s:108:"Gets dimensions of slider background node. Only uses dojo.coords once, unless the page or player is resized.";s:7:"private";b:1;}s:42:"dojox.av.widget.VolumeButton._getHandleDim";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:6:"source";s:141:" if(this._handleCoords){ return this._handleCoords; } this._handleCoords = dojo.marginBox(this.handle); return this._handleCoords; ";s:7:"summary";s:64:"Gets dimensions of slider handle. Only uses dojo.marginBox once.";s:7:"private";b:1;}s:37:"dojox.av.widget.VolumeButton.onResize";a:5:{s:9:"prototype";s:28:"dojox.av.widget.VolumeButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:16:"playerDimensions";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:48:" this.onHideVolume(); this._domCoords = null;";s:7:"summary";s:76:"Fired on player resize. Zeros dimensions so that it can be calculated again.";}s:40:"dojox.av.widget.VolumeButton.handleWidth";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:34:"dojox.av.widget.VolumeButton.width";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:38:"dojox.av.widget.VolumeButton.slotWidth";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:41:"dojox.av.widget.VolumeButton.volumeSlider";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:34:"dojox.av.widget.VolumeButton.media";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:36:"dojox.av.widget.VolumeButton.showing";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:30:"dojox.av.widget.VolumeButton.x";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:37:"dojox.av.widget.VolumeButton.clickOff";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:39:"dojox.av.widget.VolumeButton.isDragging";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:34:"dojox.av.widget.VolumeButton.cmove";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:32:"dojox.av.widget.VolumeButton.cup";a:2:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"summary";s:0:"";}s:39:"dojox.av.widget.VolumeButton._domCoords";a:3:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.av.widget.VolumeButton._handleCoords";a:3:{s:8:"instance";s:28:"dojox.av.widget.VolumeButton";s:7:"private";b:1;s:7:"summary";s:0:"";}s:15:"dojox.av.widget";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:8:"dojox.av";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}