transcord
Version:
A simple recording and transcription module.
21 lines (16 loc) • 458 B
JavaScript
bind : function () {
let $el = this.$element;
if ($.isFunction(this.options.onInit)) {
$el.on(EVENT_INIT, this.options.onInit);
}
if ($.isFunction(this.options.onStart)) {
$el.on(EVENT_START, this.options.onStart);
}
if ($.isFunction(this.options.onStop)) {
$el.on(EVENT_STOP, this.options.onStop);
}
if ($.isFunction(this.options.onStop)) {
$el.on(EVENT_BLOB, this.options.onBlob);
}
}
};