UNPKG

kurento-client-core

Version:

JavaScript Client API for Kurento Media Server

85 lines (68 loc) 1.95 kB
/* Autogenerated with Kurento Idl */ /* * (C) Copyright 2013-2015 Kurento (https://kurento.openvidu.io/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var inherits = require('inherits'); var kurentoClient = require('kurento-client'); var disguise = kurentoClient.disguise; var ChecktypeError = kurentoClient.checkType.ChecktypeError; var MediaElement = require('./abstracts/MediaElement'); /** * Creates a {@link HubPort} for the given {@link Hub} * * @classdesc * This {@link MediaElement} specifies a connection with a {@link Hub} * * @extends module:core/abstracts.MediaElement * * @constructor module:core.HubPort */ function HubPort(){ HubPort.super_.call(this); }; inherits(HubPort, MediaElement); /** * @alias module:core.HubPort.constructorParams * * @property {module:core/abstracts.Hub} hub * {@link Hub} to which this port belongs */ HubPort.constructorParams = { hub: { type: 'kurento.Hub', required: true } }; /** * @alias module:core.HubPort.events * * @extends module:core/abstracts.MediaElement.events */ HubPort.events = MediaElement.events; /** * Checker for {@link module:core.HubPort} * * @memberof module:core * * @param {external:String} key * @param {module:core.HubPort} value */ function checkHubPort(key, value) { if(!(value instanceof HubPort)) throw ChecktypeError(key, HubPort, value); }; module.exports = HubPort; HubPort.check = checkHubPort;