phetsims / vibe

Library for handling audio for PhET simulations. Provides cross-platform support and enables usage of base64 audio embedded in an HTML document.
MIT License
3 stars 3 forks source link

Audio not playing in development mode (i.e. unminified requirejs mode) on Firefox 27 #9

Closed samreid closed 9 years ago

samreid commented 10 years ago

Vasily said:

  1. Sound in Firefox 27 doesn’t play

I use approach from https://github.com/phetsims/john-travoltage/blob/master/js/model/JohnTravoltageModel.js

In file https://github.com/phetsims/fraction-matcher/blob/master/js/model/FractionMatcherModel.js I initialize then (line 38)

And in file https://github.com/phetsims/fraction-matcher/blob/master/js/model/LevelModel.js I played them (line 143)

It works fine in Chrome and iPad. But with Firefox and Android there is a problem. The sound doesn’t play.

samreid commented 10 years ago

I confirmed that audio doesn't play in Firefox 27 when using the development (unminified) version. But when I compiled the sim using chipper's grunt task, the audio does work on Windows 8/Firefox 27 and Android/Chrome. I will create a bug report for our audio developer about it not working in development (unminified) mode but it seems safe to proceed since it still works after being compiled.

jbphet commented 9 years ago

I just tested the development (unminified) versions of john-travoltage, fraction-matcher, area-builder, and ohms-law on Windows 7 + Firefox 37.0.2 and on Mac OSX 10.10.2 + Firefox 36.0.1, and sound worked fine for all sims on both platforms. Seems like this was a Firefox issue that has been resolved. Closing.