equal
deleted
inserted
replaced
142 } else { |
142 } else { |
143 return this.playerFns.getMute(); |
143 return this.playerFns.getMute(); |
144 } |
144 } |
145 }; |
145 }; |
146 |
146 |
|
147 IriSP.PopcornReplacement.player.prototype.volume = function(val) { |
|
148 if (typeof this.playerFns.getVolume == "undefined" || typeof this.playerFns.setVolume == "undefined") { |
|
149 return false; |
|
150 } |
|
151 var _vol = this.playerFns.getVolume(); |
|
152 if (typeof(val) !== "undefined" && parseFloat(val) !== NaN) { |
|
153 val = Math.max(0, Math.min(1, val)); |
|
154 if (parseFloat(val) != parseFloat(_vol)) { |
|
155 this.playerFns.setVolume(val); |
|
156 this.trigger("volumechange"); |
|
157 _vol = this.playerFns.getVolume(); |
|
158 } |
|
159 } |
|
160 return _vol; |
|
161 }; |
|
162 |
147 IriSP.PopcornReplacement.player.prototype.mute = IriSP.PopcornReplacement.player.prototype.muted; |
163 IriSP.PopcornReplacement.player.prototype.mute = IriSP.PopcornReplacement.player.prototype.muted; |
148 |
164 |
149 IriSP.PopcornReplacement.player.prototype.code = function(options) { |
165 IriSP.PopcornReplacement.player.prototype.code = function(options) { |
150 this.__codes.push(options); |
166 this.__codes.push(options); |
151 return this; |
167 return this; |