Lines Matching refs:track

2103     this.track = null;
2189 this.track = {};
2190 return this.tracks.push(this.track);
2196 this.track.id = this.stream.readUInt32();
2203 this.track.type = this.stream.readString(4);
2211 this.track.timeScale = this.stream.readUInt32();
2212 this.track.duration = this.stream.readUInt32();
2229 if (this.track.type !== 'soun') {
2236 format = this.track.format = {};
2267 return this.track.cookie = this.stream.readBuffer(this.len - 4);
2273 this.track.cookie = M4ADemuxer.readEsds(this.stream);
2278 return this.track.format.littleEndian = !!this.stream.readUInt16();
2336 this.track.stts = [];
2338 this.track.stts[i] = { class
2350 this.track.stsc = [];
2352 this.track.stsc[i] = { class
2364 this.track.sampleSize = this.stream.readUInt32();
2366 if (this.track.sampleSize === 0 && entries > 0) {
2367 this.track.sampleSizes = [];
2369 this.track.sampleSizes[i] = this.stream.readUInt32();
2379 this.track.chunkOffsets = [];
2381 this.track.chunkOffsets[i] = this.stream.readUInt32();
2389 this.track.chapterTracks = [];
2391 this.track.chapterTracks[i] = this.stream.readUInt32();
2397 …if (!((this.track.chunkOffsets != null) && (this.track.stsc != null) && (this.track.sampleSize != …
2407 this.track.seekPoints = [];
2408 _ref = this.track.chunkOffsets;
2412 for (j = _j = 0, _ref1 = this.track.stsc[stscIndex].count; _j < _ref1; j = _j += 1) {
2413 this.track.seekPoints.push({
2418 size = this.track.sampleSize || this.track.sampleSizes[sampleIndex++];
2421 timestamp += this.track.stts[sttsIndex].duration;
2422 … if (sttsIndex + 1 < this.track.stts.length && ++sttsSample === this.track.stts[sttsIndex].count) {
2427 … if (stscIndex + 1 < this.track.stsc.length && i + 1 === this.track.stsc[stscIndex + 1].first) {
2437 var track, _i, _len, _ref;
2443 track = _ref[_i];
2444 if (!(track.type === 'soun')) {
2447 this.track = track;
2450 if (this.track.type !== 'soun') {
2451 this.track = null;
2454 this.emit('format', this.track.format);
2455 this.emit('duration', this.track.duration / this.track.timeScale * 1000 | 0);
2456 if (this.track.cookie) {
2457 this.emit('cookie', this.track.cookie);
2459 return this.seekPoints = this.track.seekPoints;
2488 offset = this.track.chunkOffsets[this.chunkIndex] + this.tailOffset;
2495 while (this.chunkIndex < this.track.chunkOffsets.length) {
2496 numSamples = this.track.stsc[this.stscIndex].count - this.tailSamples;
2499 size = this.track.sampleSize || this.track.sampleSizes[this.sampleIndex];
2515 …if (this.stscIndex + 1 < this.track.stsc.length && this.chunkIndex + 1 === this.track.stsc[this.st…
2518 if (offset + length !== this.track.chunkOffsets[this.chunkIndex]) {
2525 return this["break"] = this.chunkIndex === this.track.chunkOffsets.length;
2532 var bom, id, len, nextTimestamp, point, title, track, _i, _len, _ref, _ref1, _ref2, _ref3;
2533 if (!(((_ref = this.track.chapterTracks) != null ? _ref.length : void 0) > 0)) {
2536 id = this.track.chapterTracks[0];
2539 track = _ref1[_i];
2540 if (track.id === id) {
2544 if (track.id !== id) {
2550 while (this.chapters.length < track.seekPoints.length) {
2551 point = track.seekPoints[this.chapters.length];
2570 …tamp = (_ref2 = (_ref3 = track.seekPoints[this.chapters.length + 1]) != null ? _ref3.timestamp : v…
2573 timestamp: point.timestamp / track.timeScale * 1000 | 0,
2574 duration: (nextTimestamp - point.timestamp) / track.timeScale * 1000 | 0