私は現在、次のような曲/トラックを使用するように設定されたjQueryプラグインを使用しています。
//Using an audio object
var a = new Audio();
a.src = 'somesong.mp3';
customPlayer.load( a );
また、次のオプションもサポートしています。
//Using an audio element on the page
customPlayer.load( document.getElementsByTagName('audio')[0] );
//Using a config object and you only have one encoding
customPlayer.load({ src: 'somesong.mp3' });
//Using a config object, and you have an ogg and mp3 version
customPlayer.load({ src: 'somesong', codecs: [ 'ogg', 'mp3' ]});
私はSpotifyトラックでそれを使用する方法を考えようとしています!...どんな考え/提案もいただければ幸いです。