0.0.10 • Published 4 years ago

media-monitor v0.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.9

9 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago