"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapMediaStream = void 0;
const _1 = require("../Class/$");
const NOOP_1 = require("../NOOP");
function wrapMediaStream(mediaStream, system) {
    const stream = new (class Stream extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['ST'];
        }
        stream(callback) {
            callback(mediaStream);
            return NOOP_1.NOOP;
        }
    })(system);
    return stream;
}
exports.wrapMediaStream = wrapMediaStream;
//# sourceMappingURL=MediaStream.js.map