async getNativeRtpCapabilities() { logger.debug('getNativeRtpCapabilities()'); const sdp = await this._channel.request('getRtpCapabilities'); const sdpObject = sdpTransform.parse(sdp); const caps = sdpCommonUtils.extractRtpCapabilities({ sdpObject }); return caps; }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async restartIce(iceParameters) { throw new errors_1.UnsupportedError('not implemented'); }
// NOTE: Just 'arraybuffer' is valid for Node.js. set binaryType(value: string) { logger.warn('binaryType setter not implemented, using "arraybuffer"'); }
/** * Expose Worker factory. */ async function createWorker({ logLevel = 'error' } = {}) { logger.debug('createWorker()'); const worker = new Worker_1.Worker({ logLevel }); return new Promise((resolve, reject) => { worker.on('@success', () => resolve(worker)); worker.on('@failure', reject); }); }
async getNativeSctpCapabilities() { logger.debug('getNativeSctpCapabilities()'); return { numStreams: SCTP_NUM_STREAMS }; }
/** * Create a AiortcMediaStream with audio/video tracks. */ async getUserMedia(constraints) { logger.debug('getUserMedia() [constraints:%o]', constraints); return media.getUserMedia(this._channel, constraints); }
async dump() { logger.debug('dump()'); return this._channel.request('dump'); }
async getNativeSctpCapabilities(): Promise<SctpCapabilities> { logger.debug('getNativeSctpCapabilities()'); return { numStreams : SCTP_NUM_STREAMS }; }
async dump(): Promise<any> { logger.debug('dump()'); return this._channel.request('dump'); }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async setMaxSpatialLayer(localId, spatialLayer) { throw new errors_1.UnsupportedError('not implemented'); }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async updateIceServers(iceServers) { throw new errors_1.UnsupportedError('not implemented'); }
async getNativeRtpCapabilities(): Promise<RtpCapabilities> { logger.debug('getNativeRtpCapabilities()'); const sdp = await this._channel.request('getRtpCapabilities'); const sdpObject = sdpTransform.parse(sdp); const caps = sdpCommonUtils.extractRtpCapabilities({ sdpObject }); return caps; }
/** * Create a AiortcMediaStream with audio/video tracks. */ async getUserMedia( constraints: media.AiortcMediaStreamConstraints ): Promise<AiortcMediaStream> { logger.debug('getUserMedia() [constraints:%o]', constraints); return media.getUserMedia(this._channel, constraints); }
// NOTE: Just 'arraybuffer' is valid for Node.js. set binaryType(value) { logger.warn('binaryType setter not implemented, using "arraybuffer"'); }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async setRtpEncodingParameters(localId, params) { throw new errors_1.UnsupportedError('not implemented'); }