An open API service indexing awesome lists of open source software.

https://github.com/wcoder/muzus

:notes: New conception of audio player for web.
https://github.com/wcoder/muzus

audio-player hacktoberfest javascript player pure-javascript webaudio webplayer

Last synced: about 1 month ago
JSON representation

:notes: New conception of audio player for web.

Awesome Lists containing this project

README

          

![MUZUS](https://wcoder.github.io/muzus/muzus-logo.svg)

New conception of audio player for web.

## Setup

```html

```

### Available in NPM

```
npm install muzus
```

#### Getting the library from CDN

```html

```

```html

```

## Basic Usage

Each link with `href` attribute and parent element class `muzus` automatically becomes a player for the linked MP3.

### Single track

```html

Track name

```

### Playlists

```html

Track name 1
Track name 2
Track name 3

```

Check [muzus/example/index.html](https://github.com/wcoder/muzus/blob/master/example/index.html) to see more examples of usage.

## Advanced Features

### data-attributes

Adding some data-attributes changes the behavior or appearance of the player.

Attribute_Name | Type | Default value | Description
-------------- |:--:|:--:| --
`data-repeat` | `boolean` | `false` | Applied to a element with class `muzus`. Defines whether to repeat the playback after the last track is finished.

### Preload options of script

Adding in `` your page, if you need setup player before initialize. Define in global object `Muzus`. [[Example]](https://github.com/wcoder/muzus/blob/master/example/index.html#L21)

Option | Type | Default Value | Description
-- | -- | -- | --
`autoInit` | `boolean` | `true` | Defines automatically initialize player after page loaded.
`isMobile` | `function` | + | Defines custom function for check is mobile device use.

## Development

### Gulp

Install `gulp-cli`:
```
npm install --global gulp-cli
```

Restore development dependencies:
```
npm i --only=dev
```

### SCSS

Compiling:
```
gulp build:sass
```

Auto-compiling:
```
gulp sass:watch
```

### Run example

```
npm run dev
```

## License

© 2017 Yauheni Pakala | [MIT License](https://github.com/wcoder/muzus/blob/master/LICENSE)