kurento-client-filters
Advanced tools
Comparing version 5.0.4 to 6.0.0
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -23,3 +22,3 @@ | ||
* | ||
* @copyright 2013-2014 Kurento (http://kurento.org/) | ||
* @copyright 2013-2015 Kurento (http://kurento.org/) | ||
* @license LGPL | ||
@@ -26,0 +25,0 @@ */ |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -20,6 +19,11 @@ | ||
var ChecktypeError = require('checktype').ChecktypeError; | ||
var kurentoClient = require('kurento-client'); | ||
var disguise = kurentoClient.disguise; | ||
var ChecktypeError = kurentoClient.checkType.ChecktypeError; | ||
var Filter = require('kurento-client-core').abstracts.Filter; | ||
/** | ||
@@ -33,14 +37,14 @@ * @classdesc | ||
* @constructor module:filters/abstracts.OpenCVFilter | ||
* | ||
* @param {external:String} id | ||
*/ | ||
function OpenCVFilter(id){ | ||
OpenCVFilter.super_.call(this, id); | ||
function OpenCVFilter(){ | ||
OpenCVFilter.super_.call(this); | ||
}; | ||
inherits(OpenCVFilter, Filter); | ||
/** | ||
* @alias module:filters/abstracts.OpenCVFilter.constructorParams | ||
*/ | ||
OpenCVFilter.constructorParams = {}; | ||
OpenCVFilter.constructorParams = { | ||
}; | ||
@@ -50,9 +54,16 @@ /** | ||
* | ||
* @extend module:core/abstracts.Filter.events | ||
* @extends module:core/abstracts.Filter.events | ||
*/ | ||
OpenCVFilter.events = Filter.events; | ||
module.exports = OpenCVFilter; | ||
OpenCVFilter.check = function(key, value) | ||
/** | ||
* Checker for {@link filters/abstracts.OpenCVFilter} | ||
* | ||
* @memberof module:filters/abstracts | ||
* | ||
* @param {external:String} key | ||
* @param {module:filters/abstracts.OpenCVFilter} value | ||
*/ | ||
function checkOpenCVFilter(key, value) | ||
{ | ||
@@ -62,1 +73,6 @@ if(!(value instanceof OpenCVFilter)) | ||
}; | ||
module.exports = OpenCVFilter; | ||
OpenCVFilter.check = checkOpenCVFilter; |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -20,3 +19,3 @@ | ||
/** | ||
* Event raised by a {@link module:filters.ZBarFilter ZBarFilter} when a code is found in the data being streamed. | ||
* Event raised by a {@link module:filters.ZBarFilter ZBarFilter} when a code is | ||
* | ||
@@ -28,5 +27,7 @@ * @event module:filters#CodeFound | ||
* @property {external:String} codeType | ||
* type of <a href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> code found | ||
* type of <a | ||
* href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> code | ||
* @property {external:String} value | ||
* value contained in the <a href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> code | ||
* value contained in the <a | ||
* href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> code | ||
*/ |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -20,13 +19,28 @@ | ||
var checkType = require('checktype'); | ||
var kurentoClient = require('kurento-client'); | ||
var disguise = kurentoClient.disguise; | ||
var checkType = kurentoClient.checkType; | ||
var ChecktypeError = checkType.ChecktypeError; | ||
var Transaction = kurentoClient.TransactionsManager.Transaction; | ||
var Filter = require('kurento-client-core').abstracts.Filter; | ||
function noop(error, result) { | ||
if (error) console.trace(error); | ||
return result | ||
}; | ||
/** | ||
* FaceOverlayFilter interface. This type of {@link module:core/abstracts.Filter Filter} detects faces in a video feed. The face is then overlaid with an image. | ||
* FaceOverlayFilter interface. This type of {@link module:core/abstracts.Filter | ||
* | ||
* @classdesc | ||
* FaceOverlayFilter interface. This type of {@link module:core/abstracts.Filter Filter} detects faces in a video feed. The face is then overlaid with an image. | ||
* FaceOverlayFilter interface. This type of {@link | ||
* module:core/abstracts.Filter Filter} detects faces in a video feed. The face | ||
* | ||
@@ -36,7 +50,5 @@ * @extends module:core/abstracts.Filter | ||
* @constructor module:filters.FaceOverlayFilter | ||
* | ||
* @param {external:String} id | ||
*/ | ||
function FaceOverlayFilter(id){ | ||
FaceOverlayFilter.super_.call(this, id); | ||
function FaceOverlayFilter(){ | ||
FaceOverlayFilter.super_.call(this); | ||
}; | ||
@@ -46,2 +58,6 @@ inherits(FaceOverlayFilter, Filter); | ||
// | ||
// Public methods | ||
// | ||
/** | ||
@@ -56,31 +72,38 @@ * Sets the image to use as overlay on the detected faces. | ||
* @param {external:Number} offsetXPercent | ||
* the offset applied to the image, from the X coordinate of the detected face upper right corner. A positive value indicates right displacement, while a negative value moves the overlaid image to the left. This offset is specified as a percentage of the face width. | ||
* | ||
* For example, to cover the detected face with the overlaid image, the parameter has to be <code>0.0</code>. Values of <code>1.0</code> or <code>-1.0</code> indicate that the image upper right corner will be at the face´s X coord, +- the face´s width. | ||
* | ||
* the offset applied to the image, from the X coordinate of the detected face | ||
* upper right corner. A positive value indicates right displacement, while a | ||
* negative value moves the overlaid image to the left. This offset is | ||
* specified as a percentage of the face width. | ||
* For example, to cover the detected face with the overlaid image, the | ||
* parameter has to be <code>0.0</code>. Values of <code>1.0</code> or | ||
* <code>-1.0</code> indicate that the image upper right corner will be at the | ||
* face´s X coord, +- the face´s width. | ||
* <hr/><b>Note</b> | ||
* | ||
* The parameter name is misleading, the value is not a percent but a ratio | ||
* | ||
* @param {external:Number} offsetYPercent | ||
* the offset applied to the image, from the Y coordinate of the detected face upper right corner. A positive value indicates up displacement, while a negative value moves the overlaid image down. This offset is specified as a percentage of the face width. | ||
* | ||
* For example, to cover the detected face with the overlaid image, the parameter has to be <code>0.0</code>. Values of <code>1.0</code> or <code>-1.0</code> indicate that the image upper right corner will be at the face´s Y coord, +- the face´s width. | ||
* | ||
* the offset applied to the image, from the Y coordinate of the detected face | ||
* upper right corner. A positive value indicates up displacement, while a | ||
* negative value moves the overlaid image down. This offset is specified as a | ||
* percentage of the face width. | ||
* For example, to cover the detected face with the overlaid image, the | ||
* parameter has to be <code>0.0</code>. Values of <code>1.0</code> or | ||
* <code>-1.0</code> indicate that the image upper right corner will be at the | ||
* face´s Y coord, +- the face´s width. | ||
* <hr/><b>Note</b> | ||
* | ||
* The parameter name is misleading, the value is not a percent but a ratio | ||
* | ||
* @param {external:Number} widthPercent | ||
* proportional width of the overlaid image, relative to the width of the detected face. A value of 1.0 implies that the overlaid image will have the same width as the detected face. Values greater than 1.0 are allowed, while negative values are forbidden. | ||
* | ||
* proportional width of the overlaid image, relative to the width of the | ||
* detected face. A value of 1.0 implies that the overlaid image will have the | ||
* same width as the detected face. Values greater than 1.0 are allowed, while | ||
* negative values are forbidden. | ||
* <hr/><b>Note</b> | ||
* | ||
* The parameter name is misleading, the value is not a percent but a ratio | ||
* | ||
* @param {external:Number} heightPercent | ||
* proportional height of the overlaid image, relative to the height of the detected face. A value of 1.0 implies that the overlaid image will have the same height as the detected face. Values greater than 1.0 are allowed, while negative values are forbidden. | ||
* | ||
* proportional height of the overlaid image, relative to the height of the | ||
* detected face. A value of 1.0 implies that the overlaid image will have the | ||
* same height as the detected face. Values greater than 1.0 are allowed, while | ||
* <hr/><b>Note</b> | ||
* | ||
* The parameter name is misleading, the value is not a percent but a ratio | ||
@@ -93,2 +116,6 @@ * | ||
FaceOverlayFilter.prototype.setOverlayedImage = function(uri, offsetXPercent, offsetYPercent, widthPercent, heightPercent, callback){ | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
checkType('String', 'uri', uri, {required: true}); | ||
@@ -105,6 +132,8 @@ checkType('float', 'offsetXPercent', offsetXPercent, {required: true}); | ||
widthPercent: widthPercent, | ||
heightPercent: heightPercent, | ||
heightPercent: heightPercent | ||
}; | ||
return this.invoke('setOverlayedImage', params, callback); | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'setOverlayedImage', params, callback), this) | ||
}; | ||
@@ -117,3 +146,4 @@ /** | ||
/** | ||
* Clear the image to be shown over each detected face. Stops overlaying the faces. | ||
* Clear the image to be shown over each detected face. Stops overlaying the | ||
* faces. | ||
* | ||
@@ -127,3 +157,11 @@ * @alias module:filters.FaceOverlayFilter.unsetOverlayedImage | ||
FaceOverlayFilter.prototype.unsetOverlayedImage = function(callback){ | ||
return this.invoke('unsetOverlayedImage', callback); | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
if(!arguments.length) callback = undefined; | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'unsetOverlayedImage', callback), this) | ||
}; | ||
@@ -135,2 +173,3 @@ /** | ||
/** | ||
@@ -146,3 +185,3 @@ * @alias module:filters.FaceOverlayFilter.constructorParams | ||
required: true | ||
}, | ||
} | ||
}; | ||
@@ -153,9 +192,16 @@ | ||
* | ||
* @extend module:core/abstracts.Filter.events | ||
* @extends module:core/abstracts.Filter.events | ||
*/ | ||
FaceOverlayFilter.events = Filter.events; | ||
module.exports = FaceOverlayFilter; | ||
FaceOverlayFilter.check = function(key, value) | ||
/** | ||
* Checker for {@link filters.FaceOverlayFilter} | ||
* | ||
* @memberof module:filters | ||
* | ||
* @param {external:String} key | ||
* @param {module:filters.FaceOverlayFilter} value | ||
*/ | ||
function checkFaceOverlayFilter(key, value) | ||
{ | ||
@@ -165,1 +211,6 @@ if(!(value instanceof FaceOverlayFilter)) | ||
}; | ||
module.exports = FaceOverlayFilter; | ||
FaceOverlayFilter.check = checkFaceOverlayFilter; |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -20,6 +19,20 @@ | ||
var ChecktypeError = require('checktype').ChecktypeError; | ||
var kurentoClient = require('kurento-client'); | ||
var disguise = kurentoClient.disguise; | ||
var ChecktypeError = kurentoClient.checkType.ChecktypeError; | ||
var Transaction = kurentoClient.TransactionsManager.Transaction; | ||
var Filter = require('kurento-client-core').abstracts.Filter; | ||
function noop(error, result) { | ||
if (error) console.trace(error); | ||
return result | ||
}; | ||
/** | ||
@@ -29,3 +42,4 @@ * Create a {@link module:filters.GStreamerFilter GStreamerFilter} | ||
* @classdesc | ||
* This is a generic filter interface, that creates GStreamer filters in the media server. | ||
* This is a generic filter interface, that creates GStreamer filters in the | ||
* media server. | ||
* | ||
@@ -35,15 +49,46 @@ * @extends module:core/abstracts.Filter | ||
* @constructor module:filters.GStreamerFilter | ||
* | ||
* @param {external:String} id | ||
*/ | ||
function GStreamerFilter(id){ | ||
GStreamerFilter.super_.call(this, id); | ||
function GStreamerFilter(){ | ||
GStreamerFilter.super_.call(this); | ||
}; | ||
inherits(GStreamerFilter, Filter); | ||
// | ||
// Public properties | ||
// | ||
/** | ||
* GStreamer command. | ||
* | ||
* @alias module:filters.GStreamerFilter#getCommand | ||
* | ||
* @param {module:filters.GStreamerFilter~getCommandCallback} [callback] | ||
* | ||
* @return {external:Promise} | ||
*/ | ||
GStreamerFilter.prototype.getCommand = function(callback){ | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
if(!arguments.length) callback = undefined; | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'getCommand', callback), this) | ||
}; | ||
/** | ||
* @callback module:filters.GStreamerFilter~getCommandCallback | ||
* @param {external:Error} error | ||
* @param {external:String} result | ||
*/ | ||
/** | ||
* @alias module:filters.GStreamerFilter.constructorParams | ||
* | ||
* @property {external:String} command | ||
* command that would be used to instantiate the filter, as in `gst-launch <http://rpm.pbone.net/index.php3/stat/45/idpl/19531544/numer/1/nazwa/gst-launch-1.0>`__ | ||
* command that would be used to instantiate the filter, as in `gst-launch | ||
* <http://rpm.pbone.net/index.php3/stat/45/idpl/19531544/numer/1/nazwa/gst-launch-1.0>`__ | ||
* | ||
@@ -54,3 +99,4 @@ * @property {external:FilterType} [filterType] | ||
* @property {module:core.MediaPipeline} mediaPipeline | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter belongs | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter | ||
* belongs | ||
*/ | ||
@@ -62,11 +108,8 @@ GStreamerFilter.constructorParams = { | ||
}, | ||
filterType: { | ||
type: 'FilterType', | ||
}, | ||
type: 'FilterType' }, | ||
mediaPipeline: { | ||
type: 'MediaPipeline', | ||
required: true | ||
}, | ||
} | ||
}; | ||
@@ -77,9 +120,16 @@ | ||
* | ||
* @extend module:core/abstracts.Filter.events | ||
* @extends module:core/abstracts.Filter.events | ||
*/ | ||
GStreamerFilter.events = Filter.events; | ||
module.exports = GStreamerFilter; | ||
GStreamerFilter.check = function(key, value) | ||
/** | ||
* Checker for {@link filters.GStreamerFilter} | ||
* | ||
* @memberof module:filters | ||
* | ||
* @param {external:String} key | ||
* @param {module:filters.GStreamerFilter} value | ||
*/ | ||
function checkGStreamerFilter(key, value) | ||
{ | ||
@@ -89,1 +139,6 @@ if(!(value instanceof GStreamerFilter)) | ||
}; | ||
module.exports = GStreamerFilter; | ||
GStreamerFilter.check = checkGStreamerFilter; |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -23,8 +22,13 @@ | ||
* | ||
* @copyright 2013-2014 Kurento (http://kurento.org/) | ||
* @copyright 2013-2015 Kurento (http://kurento.org/) | ||
* @license LGPL | ||
*/ | ||
Object.defineProperty(exports, 'name', {value: 'filters'}); | ||
Object.defineProperty(exports, 'version', {value: '6.0.0'}); | ||
var FaceOverlayFilter = require('./FaceOverlayFilter'); | ||
var GStreamerFilter = require('./GStreamerFilter'); | ||
var ImageOverlayFilter = require('./ImageOverlayFilter'); | ||
var ZBarFilter = require('./ZBarFilter'); | ||
@@ -35,4 +39,5 @@ | ||
exports.GStreamerFilter = GStreamerFilter; | ||
exports.ImageOverlayFilter = ImageOverlayFilter; | ||
exports.ZBarFilter = ZBarFilter; | ||
exports.abstracts = require('./abstracts'); |
/* Autogenerated with Kurento Idl */ | ||
/* | ||
* (C) Copyright 2013-2014 Kurento (http://kurento.org/) | ||
* (C) Copyright 2013-2015 Kurento (http://kurento.org/) | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser General Public License | ||
* (LGPL) version 2.1 which accompanies this distribution, and is available at | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the GNU Lesser General Public License (LGPL) | ||
* version 2.1 which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-2.1.html | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
* details. | ||
*/ | ||
@@ -20,6 +19,11 @@ | ||
var ChecktypeError = require('checktype').ChecktypeError; | ||
var kurentoClient = require('kurento-client'); | ||
var disguise = kurentoClient.disguise; | ||
var ChecktypeError = kurentoClient.checkType.ChecktypeError; | ||
var Filter = require('kurento-client-core').abstracts.Filter; | ||
/** | ||
@@ -29,3 +33,6 @@ * Builder for the {@link module:filters.ZBarFilter ZBarFilter}. | ||
* @classdesc | ||
* This filter detects <a href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> codes in a video feed. When a code is found, the filter raises a :rom:evnt:`CodeFound` event. | ||
* This filter detects <a | ||
* href="http://www.kurento.org/docs/current/glossary.html#term-qr">QR</a> | ||
* codes in a video feed. When a code is found, the filter raises a | ||
* :rom:evnt:`CodeFound` event. | ||
* | ||
@@ -36,11 +43,10 @@ * @extends module:core/abstracts.Filter | ||
* | ||
* @param {external:String} id | ||
* | ||
* @fires {@link module:filters#event:CodeFound CodeFound} | ||
*/ | ||
function ZBarFilter(id){ | ||
ZBarFilter.super_.call(this, id); | ||
function ZBarFilter(){ | ||
ZBarFilter.super_.call(this); | ||
}; | ||
inherits(ZBarFilter, Filter); | ||
/** | ||
@@ -50,3 +56,4 @@ * @alias module:filters.ZBarFilter.constructorParams | ||
* @property {module:core.MediaPipeline} mediaPipeline | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter belongs | ||
* the {@link module:core.MediaPipeline MediaPipeline} to which the filter | ||
* belongs | ||
*/ | ||
@@ -57,3 +64,3 @@ ZBarFilter.constructorParams = { | ||
required: true | ||
}, | ||
} | ||
}; | ||
@@ -64,9 +71,16 @@ | ||
* | ||
* @extend module:core/abstracts.Filter.events | ||
* @extends module:core/abstracts.Filter.events | ||
*/ | ||
ZBarFilter.events = Filter.events.concat(['CodeFound']); | ||
module.exports = ZBarFilter; | ||
ZBarFilter.check = function(key, value) | ||
/** | ||
* Checker for {@link filters.ZBarFilter} | ||
* | ||
* @memberof module:filters | ||
* | ||
* @param {external:String} key | ||
* @param {module:filters.ZBarFilter} value | ||
*/ | ||
function checkZBarFilter(key, value) | ||
{ | ||
@@ -76,1 +90,6 @@ if(!(value instanceof ZBarFilter)) | ||
}; | ||
module.exports = ZBarFilter; | ||
ZBarFilter.check = checkZBarFilter; |
{ | ||
"name": "kurento-client-filters", | ||
"version": "5.0.4", | ||
"version": "6.0.0", | ||
"description": "Filter implementations for kurento media server", | ||
"main": "lib/index.js", | ||
"keywords": [ | ||
"Kurento" | ||
], | ||
"repository": { | ||
@@ -13,7 +10,8 @@ "type": "git", | ||
}, | ||
"dependencies": { | ||
"checktype": "^0.0.4", | ||
"inherits": "^2.0.1" | ||
}, | ||
"license": "LGPL", | ||
"keywords": [ | ||
"Kurento", | ||
"module", | ||
"plugin" | ||
], | ||
"license": "LGPL-2.1", | ||
"homepage": "http://www.kurento.com", | ||
@@ -20,0 +18,0 @@ "author": "Kurento <info@kurento.com> (http://kurento.org)", |
@@ -5,4 +5,4 @@ kurento-client-filters | ||
This code is the autogenerated javascript client for [kurento] module filters. | ||
This repository host the descriptor file for the [kurento] module filters. | ||
[kurento]: http://www.kurento.org |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
59502
0
14
0
966
1
- Removedchecktype@^0.0.4
- Removedinherits@^2.0.1
- Removedchecktype@0.0.4(transitive)
- Removedinherits@2.0.4(transitive)