in modules/core/src/loaders/xviz-loader-interface.js [267:290]
_onXVIZTimeslice(timeslice) {
const oldStreamCount = this.streamBuffer.streamCount;
const bufferUpdated = this.streamBuffer.insert(timeslice);
if (bufferUpdated) {
this._bumpDataVersion();
}
if (getXVIZConfig().DYNAMIC_STREAM_METADATA && this.streamBuffer.streamCount > oldStreamCount) {
const streamsMetadata = {};
const streamSettings = this.get('streamSettings');
for (const streamName in timeslice.streams) {
streamsMetadata[streamName] = timeslice.streams[streamName].__metadata;
// Add new stream name to stream settings (default on)
if (!(streamName in streamSettings)) {
streamSettings[streamName] = true;
}
}
this.set('streamsMetadata', streamsMetadata);
}
return bufferUpdated;
}