Changeset 28746 for main/trunk
- Timestamp:
- 2013-12-05T22:52:51+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/multimodal-mdl/collect/salami-ground-truth/script2/hybrid-audio-player.js
r28433 r28746 56 56 } 57 57 58 // Latest Firefox now seems to natively support Web audio, but doesn 59 // seem to play nicely with the work here 60 // => set webAudioContext back to null to force it to use the 61 // original Firefox audio extension 62 var is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; 63 if (is_firefox) { 64 webAudioContext = null; 65 } 58 66 59 67 // ****** … … 151 159 } 152 160 153 154 allData = gs.documentMetadata["json.data"]; 161 // Fake the allData array -- First value is ground-truth => make empty 162 //allData = [ [], JSON.parse(gs.documentMetadata["json_seriesData"]) ]; 163 164 // Set up position zero as empty "ground truth" data 165 allData = [ [] ]; 155 166 156 167 // **** … … 159 170 // 'p.yScaleSimImg;, which presumably automatically generates 160 171 // gs.cgiParams.yScaleSimImg (if present). Defaults to 0.5 161 172 162 173 yScaleSimImg=gs.variables.cgiargYScaleSimImg || 0.5; 163 174 … … 165 176 166 177 178 167 179 $(function() { 180 181 168 182 169 183 var audio = document.getElementById('rta-audio-element');
Note:
See TracChangeset
for help on using the changeset viewer.