mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Disable equalizer on Apple devices
This commit is contained in:
parent
4ec406934e
commit
545c5b9ced
1 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import isMobile from 'ismobilejs';
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Convert a duration in seconds into H:i:s format.
|
||||
|
@ -44,7 +46,16 @@ export default {
|
|||
* @return {boolean}
|
||||
*/
|
||||
isAudioContextSupported() {
|
||||
var AudioContext = window.AudioContext || window.webkitAudioContext || false;
|
||||
// Apple device just doesn't love AudioContext that much.
|
||||
if (isMobile.apple.device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var AudioContext = (window.AudioContext ||
|
||||
window.webkitAudioContext ||
|
||||
window.mozAudioContext ||
|
||||
window.oAudioContext ||
|
||||
window.msAudioContext);
|
||||
|
||||
if (!AudioContext) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue