# audio-mobile

> 本插件主要针对移动端audio音频播放问题，实现了自动播放，循环播放的功能。对大部分移动端播发设备做了兼容处理，对于h5游戏开发以及微信小程序开发非常适用。

Latest version **1.3.0** (published 2018-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install audio-mobile
pnpm add audio-mobile
yarn add audio-mobile
bun add audio-mobile
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2018-08-28 |
| First published | 2018-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 252.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wangwenshan |
| Maintainers | wangwenshan |
| Keywords | audio, mobile |

## Links

- npm: https://www.npmjs.com/package/audio-mobile
- Repository: https://github.com/ws18250840411/audio-mobile
- Homepage: https://github.com/ws18250840411/audio-mobile#readme
- Issues: https://github.com/ws18250840411/audio-mobile/issues
- npm.io page: https://npm.io/package/audio-mobile

## Recent versions

- 1.3.0 (latest) — 2018-08-28

## README

## 开发说明： 
	# 1.在html结构里面加入：
	```
	<div id="audioContainer"></div>//这个元素主要用来存放audio的播放按钮样式以及位置
 	```  	
 	# 2.本插件是由原生js写的，所以不需要引入其他依赖库，只需要引入require('audio-mobile'),然后传入配置的参数即可。示例：
 	使用方式一：
 	```
 	var QkAudio = require('audio-mobile');//或者import QkAudio from 'audio-mobile'
 	var options = {
        "url": "./bgm.mp3",//音频地址
        "playicon": "https://gss0.baidu.com/9vo3dSag_xI4khGko9WTAnF6hhy/doc/pic/item/9213b07eca806538df3601ba92dda144ac3482bf.jpg",//播放图标
        "pauseicon": "https://gss0.baidu.com/9vo3dSag_xI4khGko9WTAnF6hhy/doc/pic/item/8ad4b31c8701a18bf9c3b6e69b2f07082838fe6b.jpg",//暂停播放图标
        "width":30,//播放按钮width
        "height":30//播放按钮height
    }
    var audios = new QkAudio(options);//实例化
    ```
    方式二：
    直接下载qkAudio.js，在项目里引入<script src="./qkAudio.js"></script>，然后实例化即可：
    ```
    var audios = new QkAudio(options);//实例化
    ```

## 联系方式
- `Email`：wangwenshan@qiku.com
- QQ : 1077703392

---
_Source: https://npm.io/package/audio-mobile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
