1.0.1 • Published 3 years ago
react-mobile-audio v1.0.1
目录
├── example # 存放demo的代码
│ ├── src
│ │ ├── index.html
│ │ └── index.js # 示例的入口文件
│ └── index.html # 示例页面
├── src # 存放源码的目录
│ └── index.jsx # 组件源码
本地启动:
npm install
npm run start
访问路径:
代码地址
https://github.com/wkh1234/react-mobile-audio
参数说明
Prop Type Default Notes autoPlay Boolean false 是否自动播放 className String empty string 自定义类名 loop Boolean false 是否循环播放 preload String 'metadata' 预加载方式,auto - 载入整个音频 meta - 只载入元数据 none - 不载入音频 src string string 音频链接