Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
5 demo/360-player/demo-slider-controls.js
@@ -710,7 +710,9 @@ if (window.location.toString().match(/#customize/i)) {
710 710 if (window.location.toString().match(/hifi/i)) {
711 711 soundManager.onready(function(){
712 712 document.getElementById('hifi').style.display = 'none';
  713 +
713 714 threeSixtyPlayer.config = {
  715 +
714 716 playNext: false,
715 717 autoPlay: false,
716 718 loadRingColor: '#ccc',
@@ -739,9 +741,10 @@ if (window.location.toString().match(/hifi/i)) {
739 741 peakDataColor: '#ff33ff',
740 742 peakDataOutside: true,
741 743 peakDataLineRatio: 0.5,
742   -
  744 + scaleArcWidth: 1, // thickness factor of playback progress ring
743 745 useAmplifier: true
744 746
745 747 }
  748 +
746 749 });
747 750 }
2  script/soundmanager2-jsmin.js
@@ -30,7 +30,7 @@ function(){c.unmute()};this.toggleMute=function(a){return!s(a)?!1:c.sounds[a].to
30 30 null);return d};this.canPlayURL=function(a){var d;c.hasHTML5&&(d=X({url:a}));!d&&B&&(d=a&&c.ok()?!!a.match(c.filePattern):null);return d};this.canPlayLink=function(a){return"undefined"!==typeof a.type&&a.type&&c.canPlayMIME(a.type)?!0:c.canPlayURL(a.href)};this.getSoundById=function(a,d){if(!a)throw Error("soundManager.getSoundById(): sID is null/undefined");var e=c.sounds[a];!e&&!d&&c._wD('"'+a+'" is an invalid sound ID.',2);return e};this.onready=function(a,d){var e=!1;if("function"===typeof a)n&&
31 31 c._wD(p("queue","onready")),d||(d=k),sa("onready",a,d),I();else throw p("needFunction","onready");return!0};this.ontimeout=function(a,d){var e=!1;if("function"===typeof a)n&&c._wD(p("queue","ontimeout")),d||(d=k),sa("ontimeout",a,d),I({type:"ontimeout"});else throw p("needFunction","ontimeout");return!0};this._wD=this._writeDebug=function(a,d,e){var b,f;if(!c.debugMode)return!1;"undefined"!==typeof e&&e&&(a=a+" | "+(new Date).getTime());if(Ya&&c.useConsole){e=eb[d];if("undefined"!==typeof console[e])console[e](a);
32 32 else console.log(a);if(c.consoleOnly)return!0}try{b=A("soundmanager-debug");if(!b)return!1;f=i.createElement("div");if(0===++db%2)f.className="sm2-alt";d="undefined"===typeof d?0:parseInt(d,10);f.appendChild(i.createTextNode(a));if(d){if(2<=d)f.style.fontWeight="bold";if(3===d)f.style.color="#ff3333"}b.insertBefore(f,b.firstChild)}catch(g){}return!0};this._debug=function(){var a,d;o("currentObj",1);for(a=0,d=c.soundIDs.length;a<d;a++)c.sounds[c.soundIDs[a]]._debug()};this.reboot=function(){c._wD("soundManager.reboot()");
33   -c.soundIDs.length&&c._wD("Destroying "+c.soundIDs.length+" SMSound objects...");var a,d;for(a=c.soundIDs.length-1;0<=a;a--)c.sounds[c.soundIDs[a]].destruct();try{if(F)xa=h.innerHTML;U=h.parentNode.removeChild(h);c._wD("Flash movie removed.")}catch(e){o("badRemove",2)}xa=U=B=null;c.enabled=va=n=V=za=R=S=l=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};h=null;for(a in D)if(D.hasOwnProperty(a))for(d=D[a].length-1;0<=d;d--)D[a][d].fired=!1;c._wD("soundManager: Rebooting...");k.setTimeout(c.beginDelayedInit,
  33 +c.soundIDs.length&&c._wD("Destroying "+c.soundIDs.length+" SMSound objects...");var a,d;for(a=c.soundIDs.length-1;0<=a;a--)c.sounds[c.soundIDs[a]].destruct();if(h)try{if(F)xa=h.innerHTML;U=h.parentNode.removeChild(h);c._wD("Flash movie removed.")}catch(e){o("badRemove",2)}xa=U=B=null;c.enabled=va=n=V=za=R=S=l=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};h=null;for(a in D)if(D.hasOwnProperty(a))for(d=D[a].length-1;0<=d;d--)D[a][d].fired=!1;c._wD("soundManager: Rebooting...");k.setTimeout(c.beginDelayedInit,
34 34 20)};this.getMoviePercent=function(){return h&&"undefined"!==typeof h.PercentLoaded?h.PercentLoaded():null};this.beginDelayedInit=function(){$=!0;L();setTimeout(function(){if(za)return!1;ea();ca();return za=!0},20);K()};this.destruct=function(){c._wD("soundManager.destruct()");c.disable(!0)};Ia=function(a){var d,e,b=this,f,g,u,m,i,k,n=!1,z=[],q=0,t,v,l=null;d=null;e=null;this.sID=a.id;this.url=a.url;this._iO=this.instanceOptions=this.options=w(a);this.pan=this.options.pan;this.volume=this.options.volume;
35 35 this.isHTML5=!1;this._a=null;this.id3={};this._debug=function(){if(c.debugMode){var a=null,d=[],e,f;for(a in b.options)null!==b.options[a]&&("function"===typeof b.options[a]?(e=b.options[a].toString(),e=e.replace(/\s\s+/g," "),f=e.indexOf("{"),d.push(" "+a+": {"+e.substr(f+1,Math.min(Math.max(e.indexOf("\n")-1,64),64)).replace(/\n/g,"")+"... }")):d.push(" "+a+": "+b.options[a]));c._wD("SMSound() merged options: {\n"+d.join(", \n")+"\n}")}};this._debug();this.load=function(a){var d=null;if("undefined"!==
36 36 typeof a)b._iO=w(a,b.options),b.instanceOptions=b._iO;else if(a=b.options,b._iO=a,b.instanceOptions=b._iO,l&&l!==b.url)o("manURL"),b._iO.url=b.url,b.url=null;if(!b._iO.url)b._iO.url=b.url;b._iO.url=ja(b._iO.url);c._wD("SMSound.load(): "+b._iO.url,1);if(b._iO.url===b.url&&0!==b.readyState&&2!==b.readyState)return o("onURL",1),3===b.readyState&&b._iO.onload&&b._iO.onload.apply(b,[!!b.duration]),b;a=b._iO;l=b.url;b.loaded=!1;b.readyState=1;b.playState=0;if(ka(a))if(d=b._setup_html5(a),d._called_load)c._wD(r+
2  script/soundmanager2-nodebug-jsmin.js
@@ -25,7 +25,7 @@ this.resume=function(a){return!p(a)?!1:c.sounds[a].resume()};this.resumeAll=func
25 25 return c.muted=!0};this.muteAll=function(){c.mute()};this.unmute=function(a){"string"!==typeof a&&(a=null);if(a)return!p(a)?!1:c.sounds[a].unmute();for(a=c.soundIDs.length-1;0<=a;a--)c.sounds[c.soundIDs[a]].unmute();c.muted=!1;return!0};this.unmuteAll=function(){c.unmute()};this.toggleMute=function(a){return!p(a)?!1:c.sounds[a].toggleMute()};this.getMemoryUse=function(){var a=0;i&&8!==j&&(a=parseInt(i._getMemoryUse(),10));return a};this.disable=function(a){var e;"undefined"===typeof a&&(a=!1);if(s)return!1;
26 26 s=!0;for(e=c.soundIDs.length-1;0<=e;e--)Fa(c.sounds[c.soundIDs[e]]);L(a);o.remove(h,"load",C);return!0};this.canPlayMIME=function(a){var e;c.hasHTML5&&(e=P({type:a}));!e&&n&&(e=a&&c.ok()?!!(8<j&&a.match(Ta)||a.match(c.mimePattern)):null);return e};this.canPlayURL=function(a){var e;c.hasHTML5&&(e=P({url:a}));!e&&n&&(e=a&&c.ok()?!!a.match(c.filePattern):null);return e};this.canPlayLink=function(a){return"undefined"!==typeof a.type&&a.type&&c.canPlayMIME(a.type)?!0:c.canPlayURL(a.href)};this.getSoundById=
27 27 function(a){if(!a)throw Error("soundManager.getSoundById(): sID is null/undefined");return c.sounds[a]};this.onready=function(a,c){var d=!1;if("function"===typeof a)c||(c=h),ka("onready",a,c),B();else throw u("needFunction","onready");return!0};this.ontimeout=function(a,c){var d=!1;if("function"===typeof a)c||(c=h),ka("ontimeout",a,c),B({type:"ontimeout"});else throw u("needFunction","ontimeout");return!0};this._wD=this._writeDebug=function(){return!0};this._debug=function(){};this.reboot=function(){var a,
28   -e;for(a=c.soundIDs.length-1;0<=a;a--)c.sounds[c.soundIDs[a]].destruct();try{if(y)qa=i.innerHTML;M=i.parentNode.removeChild(i)}catch(d){}qa=M=n=null;c.enabled=na=k=N=sa=J=K=s=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};i=null;for(a in w)if(w.hasOwnProperty(a))for(e=w[a].length-1;0<=e;e--)w[a][e].fired=!1;h.setTimeout(c.beginDelayedInit,20)};this.getMoviePercent=function(){return i&&"undefined"!==typeof i.PercentLoaded?i.PercentLoaded():null};this.beginDelayedInit=function(){ia=!0;E();setTimeout(function(){if(sa)return!1;
  28 +e;for(a=c.soundIDs.length-1;0<=a;a--)c.sounds[c.soundIDs[a]].destruct();if(i)try{if(y)qa=i.innerHTML;M=i.parentNode.removeChild(i)}catch(d){}qa=M=n=null;c.enabled=na=k=N=sa=J=K=s=c.swfLoaded=!1;c.soundIDs=[];c.sounds={};i=null;for(a in w)if(w.hasOwnProperty(a))for(e=w[a].length-1;0<=e;e--)w[a][e].fired=!1;h.setTimeout(c.beginDelayedInit,20)};this.getMoviePercent=function(){return i&&"undefined"!==typeof i.PercentLoaded?i.PercentLoaded():null};this.beginDelayedInit=function(){ia=!0;E();setTimeout(function(){if(sa)return!1;
29 29 V();U();return sa=!0},20);D()};this.destruct=function(){c.disable(!0)};Ba=function(a){var e,d,b=this,g,f,A,I,h,l,m=!1,k=[],o=0,q,s,n=null;e=null;d=null;this.sID=a.id;this.url=a.url;this._iO=this.instanceOptions=this.options=r(a);this.pan=this.options.pan;this.volume=this.options.volume;this.isHTML5=!1;this._a=null;this.id3={};this._debug=function(){};this.load=function(a){var c=null;if("undefined"!==typeof a)b._iO=r(a,b.options),b.instanceOptions=b._iO;else if(a=b.options,b._iO=a,b.instanceOptions=
30 30 b._iO,n&&n!==b.url)b._iO.url=b.url,b.url=null;if(!b._iO.url)b._iO.url=b.url;b._iO.url=$(b._iO.url);if(b._iO.url===b.url&&0!==b.readyState&&2!==b.readyState)return 3===b.readyState&&b._iO.onload&&b._iO.onload.apply(b,[!!b.duration]),b;a=b._iO;n=b.url;b.loaded=!1;b.readyState=1;b.playState=0;if(aa(a)){if(c=b._setup_html5(a),!c._called_load){b._html5_canplay=!1;if(b._a.src!==a.url)b._a.src=a.url,b.setPosition(0);b._a.autobuffer="auto";b._a.preload="auto";c._called_load=!0;a.autoPlay&&b.play()}}else try{b.isHTML5=
31 31 !1,b._iO=Y(X(a)),a=b._iO,8===j?i._load(b.sID,a.url,a.stream,a.autoPlay,a.whileloading?1:0,a.loops||1,a.usePolicyFile):i._load(b.sID,a.url,!!a.stream,!!a.autoPlay,a.loops||1,!!a.autoLoad,a.usePolicyFile)}catch(e){F({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}return b};this.unload=function(){if(0!==b.readyState){if(b.isHTML5){if(I(),b._a)b._a.pause(),ta(b._a,"about:blank"),b.url="about:blank"}else 8===j?i._unload(b.sID,"about:blank"):i._unload(b.sID);g()}return b};this.destruct=function(a){if(b.isHTML5){if(I(),
12 script/soundmanager2-nodebug.js
@@ -519,12 +519,14 @@ function SoundManager(smURL, smID) {
519 519 for (i = _s.soundIDs.length-1; i >= 0; i--) {
520 520 _s.sounds[_s.soundIDs[i]].destruct();
521 521 }
522   - try {
523   - if (_isIE) {
524   - _oRemovedHTML = _flash.innerHTML;
  522 + if (_flash) {
  523 + try {
  524 + if (_isIE) {
  525 + _oRemovedHTML = _flash.innerHTML;
  526 + }
  527 + _oRemoved = _flash.parentNode.removeChild(_flash);
  528 + } catch(e) {
525 529 }
526   - _oRemoved = _flash.parentNode.removeChild(_flash);
527   - } catch(e) {
528 530 }
529 531 _oRemovedHTML = _oRemoved = _needsFlash = null;
530 532 _s.enabled = _didDCLoaded = _didInit = _waitingForEI = _initPending = _didAppend = _appendSuccess = _disabled = _s.swfLoaded = false;
18 script/soundmanager2.js
@@ -1239,15 +1239,17 @@ function SoundManager(smURL, smID) {
1239 1239
1240 1240 // trash ze flash
1241 1241
1242   - try {
1243   - if (_isIE) {
1244   - _oRemovedHTML = _flash.innerHTML;
  1242 + if (_flash) {
  1243 + try {
  1244 + if (_isIE) {
  1245 + _oRemovedHTML = _flash.innerHTML;
  1246 + }
  1247 + _oRemoved = _flash.parentNode.removeChild(_flash);
  1248 + _s._wD('Flash movie removed.');
  1249 + } catch(e) {
  1250 + // uh-oh.
  1251 + _wDS('badRemove', 2);
1245 1252 }
1246   - _oRemoved = _flash.parentNode.removeChild(_flash);
1247   - _s._wD('Flash movie removed.');
1248   - } catch(e) {
1249   - // uh-oh.
1250   - _wDS('badRemove', 2);
1251 1253 }
1252 1254
1253 1255 // actually, force recreate of movie.

No commit comments for this range

Something went wrong with that request. Please try again.