UNPKG

fcr-core

Version:

Core APIs for building online scenes

35 lines (34 loc) 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FcrInterpreterRoomControlImpl = void 0; var _ = require(".."); var _logger = require("../../utilities/logger"); var _type = require("../type"); /** * @internal */ class FcrInterpreterRoomControlImpl extends _.FcrBaseRoomControlImpl { //@internal logger = (0, _logger.createLogger)({ prefix: 'FcrInterpreterRoomControlImpl' }); constructor(_engine, _scene, _api, _config, _sharedCache, _chatConnection, chatRoomControl) { super(_engine, _scene, _api, _config, _type.FcrRoomType.Interpreterroom, _chatConnection, _sharedCache, chatRoomControl); this._engine = _engine; this._scene = _scene; this._api = _api; this._config = _config; this._sharedCache = _sharedCache; this._chatConnection = _chatConnection; this._addLogObserver(); } _addLogObserver() { this.addObserver((0, _logger.generateLogObserver)(this.logger, [['onCloudRecordingStateUpdated', ['roomId', 'state']], ['onJoinRoomFailure', ['roomId', 'error']], ['onJoinRoomSuccess', ['roomId']], ['onLiveStreamingStateUpdated', ['roomId', 'state', 'url', 'reason']], // 'onNetworkQualityUpdated', // 'onNetworkStatsUpdated', ['onRoomMessageReceived', ['roomId', 'message']], ['onRoomPropertiesDeleted', ['roomId', 'event']], ['onRoomPropertiesUpdated', ['roomId', 'event']], ['onRoomStateUpdated', ['roomId', 'state']]])); } } exports.FcrInterpreterRoomControlImpl = FcrInterpreterRoomControlImpl;