Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate file formats for multiple browsers? #2

Open
rachelnabors opened this issue Nov 11, 2012 · 3 comments
Open

Alternate file formats for multiple browsers? #2

rachelnabors opened this issue Nov 11, 2012 · 3 comments

Comments

@rachelnabors
Copy link

How could one get this to work with Firefox and Chrome/Safari by using both ogg and mp3 formats?

@visualjazz-rtilt
Copy link

Did you get any response on this?

@rachelnabors
Copy link
Author

Nope.

@discully
Copy link

I don't know if this is an approved solution... but the SoundlessLoop object attempts to detect the browser and sets some bools in SoundlessLoop.is. So, for example:

var loop = new SeamlessLoop();
var audio_uri = loop.is.chrome ? "my_sound.mp3" : "my_sound.ogg";
loop.addUri( audio_uri, 1000, "my_sound");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants