Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
angular-audio-player-html5-es6
Advanced tools
Angular Audio Component Player - HTML5/ES6
npm i angular-audio-player-html5-es6
<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>
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 ;)
Version | Description |
---|---|
1.0.0 | Upping Angular Audio Player Component |
2.0.0 | Config changed in component and code improvements |
2.1.0 | Added elapsed and remaining time |
2.2.0 | Config changed and imports HTML, CSS files |
2.2.1 | Create sub-component audio-list and apply audio-list toggle animation |
2.2.2 | Adding SVG icons to loop, random and also changed the npm tasks |
Command | Description |
---|---|
npm start | Start live server, concat, babelify and watchify changes |
npm run build | Concat, Babelify and Minify |
FAQs
Angular Audio Player Component - HTML5/ES6
We found that angular-audio-player-html5-es6 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.