Socket
Socket
Sign inDemoInstall

angular-audio-player-html5-es6

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-audio-player-html5-es6

Angular Audio Player Component - HTML5/ES6


Version published
Maintainers
1
Created
Source

angular-audio-player-html5-es6

Angular Audio Component Player - HTML5/ES6

Demo

View demo

Print Screen

angular audio component player

Download

npm i angular-audio-player-html5-es6

Creating html

<html data-ng-app="app">
<head>
  <meta charset="utf-8">
  <title>Angular Audio Player Component - HTML5/ES6</title>
</head>
<body data-ng-controller="AppController as ctrl">
  <!-- Component Audio Player -->
  <audio-player title="Audio Player" options="ctrl.options" musics="ctrl.list"></audio-player>
  <!-- /Component Audio Player -->
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
  <script src="dist/bundle.min.js"></script>
  <script src="app.js"></script>
</body>
</html>

Creating controller

angular
  .module('app', ['audio.player'])
  .controller('AppController', ['$scope', function ($scope) {
    var ctrl = this;
    ctrl.options = {
      autoplay: true,
      loop: false,
      random: true,
      origin: 'anonymous' // Optional, anonymous is default
    }
    ctrl.list = [
      {
        artist: 'Chasing Ghosts',
        title: 'Fallen From Grace',
        album: 'Chasing Ghosts',
        value: 'musics/Chasing_Ghosts-Fallen_From_Grace.mp3'
      },
      {
        artist: 'Sepultura',
        title: 'Refuse/Resist',
        album: 'Chaos A.D.',
        value: 'musics/Sepultura-Refuse_Resist.mp3'
      },
      {
        artist: 'Raimundos',
        title: 'Baily Funk',
        album: 'Lapadas do povo',
        value: 'musics/Raimundos-Baily_Funk.mp3'
      }
    ]
  }])


Este repositório surgiu da palestra do Willian Justen no BrazilJS 2016, que mostrou por onde começar os estudos sobre audio api. Thanks Willian ;)


Changelog

VersionDescription
1.0.0Upping Angular Audio Player Component
2.0.0Config changed in component and code improvements
2.1.0Added elapsed and remaining time
2.2.0Config changed and imports HTML, CSS files
2.2.1Create sub-component audio-list and apply audio-list toggle animation
2.2.2Adding SVG icons to loop, random and also changed the npm tasks

Developer

npm scripts

CommandDescription
npm startStart live server, concat, babelify and watchify changes
npm run buildConcat, Babelify and Minify

Keywords

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc