Skip to content

Commit

Permalink
Add additional audio file extensions to regex
Browse files Browse the repository at this point in the history
Based on [this
list](https://en.wikipedia.org/wiki/HTML5_Audio#Supported_audio_coding_formats)
of support for audio format by the `<audio>` element.
  • Loading branch information
pcalves committed Dec 2, 2016
1 parent ec078d1 commit ae54bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import Base from './Base'

const AUDIO_EXTENSIONS = /\.(mp3|wav|m4a)($|\?)/i
const AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|ogg|spx)($|\?)/i

export default class FilePlayer extends Base {
static displayName = 'FilePlayer'
Expand Down

0 comments on commit ae54bf9

Please sign in to comment.