HenrikJoreteg / HenrikJoreteg/SoundEffectManager

use an alternative format when mp3 is not supported

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

chromium doesn't decode mp3 (licensing reasons) -- it would be nice to specify a fallback there (e.g. an ogg).
However, chromium doesn't seem to return a no to
document.createElement('audio').canPlayType('audio/mpeg')
which makes detecting this hard. Maybe trying ogg first after checking document.createElement('audio').canPlayType('audio/ogg;codecs=vorbis') returns 'probably' is a better way.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.