Lines Matching refs:_this

49     this.source.on('error', (function(_this) {  argument
51 _this.emit('error', err);
52 return _this.stop();
55 this.source.on('progress', (function(_this) { argument
57 _this.buffered = buffered;
58 return _this.emit('buffer', _this.buffered);
107 this.once(event, (function(_this) { argument
109 _this.stop();
155 this.demuxer.on('duration', (function(_this) { argument
157 _this.duration = duration;
158 return _this.emit('duration', _this.duration);
161 this.demuxer.on('metadata', (function(_this) { argument
163 _this.metadata = metadata;
164 return _this.emit('metadata', _this.metadata);
167 return this.demuxer.on('error', (function(_this) { argument
169 _this.emit('error', err);
170 return _this.stop();
188 this.decoder.on('data', (function(_this) { argument
190 return _this.emit('data', buffer);
195 this.decoder.on('data', (function(_this) { argument
203 return _this.emit('data', buf);
207 this.decoder.on('error', (function(_this) { argument
209 _this.emit('error', err);
210 return _this.stop();
213 this.decoder.on('end', (function(_this) { argument
215 return _this.emit('end');
1388 this.demuxer.on('cookie', (function(_this) { argument
1392 return _this.setCookie(cookie);
1395 return _this.emit('error', error);
1399 this.demuxer.on('data', (function(_this) { argument
1402 if (_this.waiting) {
1403 return _this.decode();
1407 this.demuxer.on('end', (function(_this) { argument
1409 _this.receivedFinalBuffer = true;
1410 if (_this.waiting) {
1411 return _this.decode();
1658 source.on('data', (function(_this) { argument
1662 return _this.readChunk(chunk);
1665 source.on('error', (function(_this) { argument
1667 return _this.emit('error', err);
1670 source.on('end', (function(_this) { argument
1673 _this.readChunk(chunk);
1675 return _this.emit('end');
2835 return this.device.on('refill', this.refill = (function(_this) { argument
2837 return _this.emit('refill', buffer);
3406 this.asset.on('buffer', (function(_this) { argument
3408 _this.buffered = buffered;
3409 return _this.emit('buffer', _this.buffered);
3412 this.asset.on('decodeStart', (function(_this) { argument
3414 _this.queue = new Queue(_this.asset);
3415 return _this.queue.once('ready', _this.startPlaying);
3418 this.asset.on('format', (function(_this) { argument
3420 _this.format = format;
3421 return _this.emit('format', _this.format);
3424 this.asset.on('metadata', (function(_this) { argument
3426 _this.metadata = metadata;
3427 return _this.emit('metadata', _this.metadata);
3430 this.asset.on('duration', (function(_this) { argument
3432 _this.duration = duration;
3433 return _this.emit('duration', _this.duration);
3436 this.asset.on('error', (function(_this) { argument
3438 return _this.emit('error', error);
3504 this.queue.once('ready', (function(_this) { argument
3507 if ((_ref1 = _this.device) != null) {
3508 _ref1.seek(_this.currentTime);
3510 if (_this.playing) {
3511 return (_ref2 = _this.device) != null ? _ref2.start() : void 0;
3527 this.device.on('timeUpdate', (function(_this) { argument
3529 _this.currentTime = currentTime;
3530 return _this.emit('progress', _this.currentTime);
3533 this.refill = (function(_this) { argument
3536 if (!_this.playing) {
3540 frame = _this.queue.read();
3550 frame = _this.queue.read();
3554 _ref = _this.filters;
3560 if (_this.queue.ended) {
3561 _this.currentTime = _this.duration;
3562 _this.emit('progress', _this.currentTime);
3563 _this.emit('end');
3564 _this.stop();
3566 _this.device.stop();
3605 this.asset.on('end', (function(_this) { argument
3607 return _this.ended = true;
3679 this.reader.onload = (function(_this) { argument
3683 _this.offset += buf.length;
3684 _this.emit('data', buf);
3685 _this.active = false;
3686 if (_this.offset < _this.length) {
3687 return _this.loop();
3691 this.reader.onloadend = (function(_this) { argument
3693 if (_this.offset === _this.length) {
3694 _this.emit('end');
3695 return _this.reader = null;
3699 this.reader.onerror = (function(_this) { argument
3701 return _this.emit('error', e);
3704 this.reader.onprogress = (function(_this) { argument
3706 return _this.emit('progress', (_this.offset + e.loaded) / _this.length * 100);
3767 this.xhr.onload = (function(_this) { argument
3769 _this.length = parseInt(_this.xhr.getResponseHeader("Content-Length"));
3770 _this.inflight = false;
3771 return _this.loop();
3774 this.xhr.onerror = (function(_this) { argument
3776 _this.pause();
3777 return _this.emit('error', err);
3780 this.xhr.onabort = (function(_this) { argument
3782 return _this.inflight = false;
3796 this.xhr.onload = (function(_this) { argument
3799 if (_this.xhr.response) {
3800 buf = new Uint8Array(_this.xhr.response);
3802 txt = _this.xhr.responseText;
3809 _this.offset += buffer.length;
3810 _this.emit('data', buffer);
3811 if (_this.offset >= _this.length) {
3812 _this.emit('end');
3814 _this.inflight = false;
3815 if (!(_this.offset >= _this.length)) {
3816 return _this.loop();
3820 this.xhr.onprogress = (function(_this) { argument
3822 return _this.emit('progress', (_this.offset + event.loaded) / _this.length * 100);
3825 this.xhr.onerror = (function(_this) { argument
3827 _this.emit('error', err);
3828 return _this.pause();
3831 this.xhr.onabort = (function(_this) { argument
3833 return _this.inflight = false;