1.0.19 • Published 6 years ago

paper-music-player v1.0.19

Weekly downloads
-
License
-
Repository
github
Last release
6 years ago

\<paper-music-player>

GitHub version Published on webcomponents.org npm version

HTML5 Audio player for Polymer 3.0-pre12 supporting playlists

Normal player

Demo

Mini player

Demo

Features

  • Controls: play, pause, next, previous, volume
  • Playlist support
  • Track timers and real-time clickable progress bar
  • Responsive
  • Mobile and Desktop
  • Polymer 3.0 ready
  • Support background play (Android, iOS)

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Then you can import and use the player in your application:

// Don't forget that this component was written using Polymer 3.0-pre.12
import '/paper-music-player/paper-music-player.js';
<!-- use it in a template or directly in the HTML -->
<paper-music-player playlist="[[playlist]]" mini></paper-music-player>

A playlist is an array composed of objects containing the title and the filename:

var playlist = [
  {title: '…', file: 'my-files/track-1.mp3', img: 'my-files/some-artwork.png'},
  {title: '…', file: 'my-files/track-2.mp3'}, …]

Viewing Your Element

$ polymer serve

Credits

  • Tracks: youtube no license channel
  • Animation: SiriwaveJS
1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago