UNPKG

kurento-client-core

Version:

JavaScript Client API for Kurento Media Server

85 lines (68 loc) 2.04 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'); /** * Builder for the {@link PassThrough} * * @classdesc * This {@link MediaElement} that just passes media through * * @extends module:core/abstracts.MediaElement * * @constructor module:core.PassThrough */ function PassThrough(){ PassThrough.super_.call(this); }; inherits(PassThrough, MediaElement); /** * @alias module:core.PassThrough.constructorParams * * @property {module:core.MediaPipeline} mediaPipeline * the {@link MediaPipeline} to which the element belongs */ PassThrough.constructorParams = { mediaPipeline: { type: 'kurento.MediaPipeline', required: true } }; /** * @alias module:core.PassThrough.events * * @extends module:core/abstracts.MediaElement.events */ PassThrough.events = MediaElement.events; /** * Checker for {@link module:core.PassThrough} * * @memberof module:core * * @param {external:String} key * @param {module:core.PassThrough} value */ function checkPassThrough(key, value) { if(!(value instanceof PassThrough)) throw ChecktypeError(key, PassThrough, value); }; module.exports = PassThrough; PassThrough.check = checkPassThrough;