code: function WhammyVideo(duration, quality) {
          this.frames = [];
          if (!duration) {
              duration = 1;
          }
          this.duration = 1000 / duration;
          this.quality = quality || 0.8;
      }
docs: a more abstract-ish API