wcoder / muzus

:notes: New conception of audio player for web.

Home Page:https://wcoder.github.io/muzus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support crossOrigin

wcoder opened this issue · comments

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin

Possible solution:
add

e.crossOrigin = 'anonymous';

to

muzus/src/muzus.js

Lines 53 to 59 in d65676e

function createAudioElement () {
var e = createElement('audio');
e.preload = 'metadata';
e.type = 'audio/mpeg';
e.volume = 1;
return e;
}

Example: https://wcoder.github.io/muzus/example-businessfunk.html

Not a bug. Used default behavior.