UNPKG

kurento-client-core

Version:

JavaScript Client API for Kurento Media Server

81 lines (64 loc) 1.93 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('./MediaElement'); /** * @classdesc * Base interface for all filters. * <p> * This is a certain type of {@link MediaElement}, that processes media * injected through its sinks, and delivers the outcome through its sources. * </p> * * @abstract * @extends module:core/abstracts.MediaElement * * @constructor module:core/abstracts.Filter */ function Filter(){ Filter.super_.call(this); }; inherits(Filter, MediaElement); /** * @alias module:core/abstracts.Filter.constructorParams */ Filter.constructorParams = { }; /** * @alias module:core/abstracts.Filter.events * * @extends module:core/abstracts.MediaElement.events */ Filter.events = MediaElement.events; /** * Checker for {@link module:core/abstracts.Filter} * * @memberof module:core/abstracts * * @param {external:String} key * @param {module:core/abstracts.Filter} value */ function checkFilter(key, value) { if(!(value instanceof Filter)) throw ChecktypeError(key, Filter, value); }; module.exports = Filter; Filter.check = checkFilter;