diff options
Diffstat (limited to 'packages/meshbay-hub')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/music-player.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/music-player.js b/packages/meshbay-hub/src/meshbay_hub/static/music-player.js index 7c81f4e..5f2e33c 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/music-player.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/music-player.js @@ -36,9 +36,12 @@ const MIME_BY_EXT = { wav: 'audio/wav', aac: 'audio/aac', m4a: 'audio/mp4', }; -// Kept in sync with the node's BROWSER_INCOMPATIBLE_AUDIO_EXTS -// (webrtc_server.py) — both name the same two formats no mainstream -// browser's <audio> element decodes natively. +// The same two formats as the node's BROWSER_INCOMPATIBLE_AUDIO_EXTS +// (webrtc_server.py), which is the one that decides: the node refuses a +// transcode request for anything else. This is here so the player does not +// ask for one it knows will be refused — not because it enforces the rule. +// It used to be the only thing that did, and a member's own message never +// passed through it. const NEEDS_TRANSCODE_RE = /\.(wma|mpc)$/i; function guessMime(name) { |