function WhammyVideo(duration, quality) {
        this.frames = [];
        if (!duration) {
            duration = 1;
        }
        this.duration = 1000 / duration;
        this.quality = quality || 0.8;
    }
Whammy is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It is written by {@link https://github.com/antimatter15|antimatter15}
@summary A real time javascript webm encoder based on a canvas hack.
@typedef Whammy
@class
@example
var recorder = new Whammy().Video(15);
recorder.add(context || canvas || dataURL);
var output = recorder.compile();