openvidu
openvidu copied to clipboard
Error applying CrowdDetectorFilter
Describe the bug When applying the filter to the session an exception describes an issue with the parameters given to the filter.
ERROR:org.kurento.client.internal.server.KurentoServerException:'rois' parameter should be a list (Code:40001, Type:null, Data: {"type":"MARSHALL_ERROR"})
Expected behavior Apply the filter
Wrong current behavior The filter is not applied and and exception is thrown
OpenVidu tutorial where to replicate the error
-
Enable the filter for the session kurentoOptions: { allowedFilters: ['CrowdDetectorFilter'] };
-
Apply the filter (documentation options were used) this.publisher1.stream.applyFilter("CrowdDetectorFilter", { rois: [ { id: 'roi1', points: [ {x: 0, y: 0}, {x: 0.5, y: 0}, {x: 0.5, y: 0.5}, {x: 0, y: 0.5} ], regionOfInterestConfig: { occupancyLevelMin: 10, occupancyLevelMed: 35, occupancyLevelMax: 65, occupancyNumFramesToEvent: 5, fluidityLevelMin: 10, fluidityLevelMed: 35, fluidityLevelMax: 65, fluidityNumFramesToEvent: 5, sendOpticalFlowEvent: false, opticalFlowNumFramesToEvent: 3, opticalFlowNumFramesToReset: 3, opticalFlowAngleOffset: 0 } } ] });
OpenVidu deployment info Openvidu deployed on premises using the installation script
Openvidu 2.17.0 Kurento 6.16.0
Client device info (if applicable) Chrome 89.0.4389.90 openvidu-angular 2.17.0
Screenshots
Additional context Other filters like GStreamer are working. CrowdDetectorFilter is enabled for the session
Hello,
Seems like some kind of parsing error of type list. Please, update Kurento Media Server logging level in the module "JSON-RPC API server calls" as stated in here: https://doc-kurento.readthedocs.io/en/latest/features/logging.html#other-components
That will provide further information about what is being received and parsed by the RPC Kurento Media Server module.
Seems like openvidu-server is not able to properly parse type "list" for the options
parameter of the Stream.applyFilter
method. It is likely a bug in openvdu-server source code.