New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

util.audio

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util.audio

audio player and recorder for browser

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

util.audio

util.audio is to provide angular service 'audioService' and directive 'util-audio' with recorder and player for browser with Web Audio API support

Usage

Install the required packages

bower install util.audio Wad angular angular-animate angular-sanitize angular-ui-router ionic lodash  numeral

npm install dateformat

Create audio player by directive

	<util-audio src='http://static.kevvv.in/sounds/callmemaybe.mp3'></util-audio>

Create audioService.Recorder

	require 'util.auth'
	
	angular.module 'app', ['util.audio']
		.controller 'AudioController', ($scope, audioService) ->
			_.extend $scope,
				recorder:	new audioService.Recorder()
				recordCompleted: ->
					$scope.$apply('recorder.url')

html with record button and player

	<div>
		<button class="button icon ion-record" on-hold='recorder.start()' on-release='recorder.stop().then(recordCompleted)'></button>
		<util-audio ng-src="{{recorder.url}}"></util-audio>
	</div>

Demo

Open browser to visit http://mob.myvnc.com/util.audio/. Press record button for audio recording and release to stop. Then, press play button to play the last recording.

Deploy to local testing server

  npm install && bower install
  node_modules/.bin/gulp
  node_modules/.bin/http-server ./test -p 8080

open browser to visit http://localhost:8080/

FAQs

Package last updated on 04 Dec 2015

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