【文件属性】:
文件名称:soundcloud-audio.js:具有HTML5音频API的SoundCloud曲目和播放列表
文件大小:69KB
文件格式:ZIP
更新时间:2021-04-30 06:49:48
soundcloud html5-audio JavaScript
soundcloud-audio.js
和SoundCloud和API的包装。 它可以被视为官方的小型替代品,也可以被视为独立的浏览器音频库。
安装
npm install soundcloud-audio --save
用法
const SoundCloudAudio = require ( 'soundcloud-audio' ) ;
// create new instance of audio
// clientId is optional but without it you cannot play tracks directly from SoundCloud API
const scPlayer = new SoundCloudAudio ( 'YOUR_CLIENT_ID' ) ;
// if you have a SoundCloud api stream url yo
【文件预览】:
soundcloud-audio.js-master
----.prettierignore(5B)
----.npmignore(42B)
----.travis.yml(223B)
----example()
--------track.html(3KB)
----test()
--------SoundCloudAudio.spec.js(6KB)
----README.md(8KB)
----dist()
--------soundcloud-audio.js(7KB)
--------soundcloud-audio.min.js(5KB)
----.editorconfig(214B)
----.gitignore(46B)
----index.js(7KB)
----karma.conf.js(2KB)
----package-lock.json(228KB)
----package.json(1KB)