1.0.6 • Published 4 years ago

@feizheng/next-audio-manager v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

next-audio-manager

Audio manager.

version license size download

installation

npm install -S @feizheng/next-audio-manager

apis

apiparamsdescription
create-Create one/multiple instance.
method-Call context method.
property-Call context property.

usage

import NxAudioManager from '@feizheng/next-audio-manager';

// ======= multiple =======
NxAudioManager.create([
  { key: 'k1', src: 'https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3' },
  { key: 'k2', src: 'https://kolber.github.io/audiojs/demos/mp3/juicy.mp3' }
]);

// stop all audios:
NxAudioManager.method('play');



// ======= single =======
const audio = NxAudioManager.create({ 
  standalone: true,
  src: 'https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3' 
});

audio.method('play');

license

Code released under the MIT license.

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago