0.0.10 • Published 3 years ago

media-monitor v0.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

mediaMonitor

demo image

This is a progress monitor for video or audio.

Install

bower install media-monitor

Install node modules

npm install media-monitor

Support

  • IE10
  • chrome
  • firefox

Usage

var opts = {
  //default 100
  scale:20,
  listenCB:function( data ){
    //do something...
  }
};

mediaMonitor.detect( audio, opts );

API

mediaMonitor.detect( element, opts ) : MediaMonitor

Create and listen a monitor

MediaMonitor.destroy() : void

Remove all events

default listen callback

  • post (ajax)
  • get (ajax)

example:

var opts = {
  listenCB:{
    name:"post",
    url:"/testse",
    //other callbacks (optional)
    otherCBs:[function(){console.log(arguments);}],
    //default url (optional)
    dataType:"json"
  },
  scale:scale
};

DEMO

gulp server

Build

gulp
0.0.10

3 years ago

0.0.9

8 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago