Whammy()

new Whammy()

A real time javascript webm encoder based on a canvas hack.

Whammy is a standalone class used by RecordRTC to bring video recording in Chrome. It is written by antimatter15

Author:
License:
Source:
See:
Example
var recorder = new Whammy().Video(15);
recorder.add(context || canvas || dataURL);
var output = recorder.compile();

Methods

(static) Video(speednullable, qualitynullable)

A more abstract-ish API.

Parameters:
Name Type Attributes Description
speed number <nullable>

0.8

quality number <nullable>

100

Source:
Example
recorder = new Whammy().Video(0.8, 100);

(static) Video(speednullable, qualitynullable)

A more abstract-ish API.

Parameters:
Name Type Attributes Description
speed number <nullable>

0.8

quality number <nullable>

100

Source:
Example
recorder = new Whammy().Video(0.8, 100);

(static) WhammyVideo#add(frame, duration)

Pass Canvas or Context or image/webp(string) to Whammy encoder.

Parameters:
Name Type Description
frame string

Canvas || Context || image/webp

duration number

Stick a duration (in milliseconds)

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.add(canvas || context || 'image/webp');

(static) WhammyVideo#add(frame, duration)

Pass Canvas or Context or image/webp(string) to Whammy encoder.

Parameters:
Name Type Description
frame string

Canvas || Context || image/webp

duration number

Stick a duration (in milliseconds)

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.add(canvas || context || 'image/webp');

(static) WhammyVideo#compile(callback)

Encodes frames in WebM container. It uses WebWorkinvoke to invoke 'ArrayToWebM' method.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.compile(function(blob) {
   // blob.size - blob.type
});

(static) WhammyVideo#compile(callback)

Encodes frames in WebM container. It uses WebWorkinvoke to invoke 'ArrayToWebM' method.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.compile(function(blob) {
   // blob.size - blob.type
});

Whammy()

new Whammy()

A real time javascript webm encoder based on a canvas hack.

Whammy is a standalone class used by RecordRTC to bring video recording in Chrome. It is written by antimatter15

Author:
License:
Source:
See:
Example
var recorder = new Whammy().Video(15);
recorder.add(context || canvas || dataURL);
var output = recorder.compile();

Methods

(static) Video(speednullable, qualitynullable)

A more abstract-ish API.

Parameters:
Name Type Attributes Description
speed number <nullable>

0.8

quality number <nullable>

100

Source:
Example
recorder = new Whammy().Video(0.8, 100);

(static) Video(speednullable, qualitynullable)

A more abstract-ish API.

Parameters:
Name Type Attributes Description
speed number <nullable>

0.8

quality number <nullable>

100

Source:
Example
recorder = new Whammy().Video(0.8, 100);

(static) WhammyVideo#add(frame, duration)

Pass Canvas or Context or image/webp(string) to Whammy encoder.

Parameters:
Name Type Description
frame string

Canvas || Context || image/webp

duration number

Stick a duration (in milliseconds)

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.add(canvas || context || 'image/webp');

(static) WhammyVideo#add(frame, duration)

Pass Canvas or Context or image/webp(string) to Whammy encoder.

Parameters:
Name Type Description
frame string

Canvas || Context || image/webp

duration number

Stick a duration (in milliseconds)

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.add(canvas || context || 'image/webp');

(static) WhammyVideo#compile(callback)

Encodes frames in WebM container. It uses WebWorkinvoke to invoke 'ArrayToWebM' method.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.compile(function(blob) {
   // blob.size - blob.type
});

(static) WhammyVideo#compile(callback)

Encodes frames in WebM container. It uses WebWorkinvoke to invoke 'ArrayToWebM' method.

Parameters:
Name Type Description
callback function

Callback function, that is used to pass recorded blob back to the callee.

Source:
Example
recorder = new Whammy().Video(0.8, 100);
recorder.compile(function(blob) {
   // blob.size - blob.type
});