mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: fix local StreamPropertyChangedEvent filter (options as object instead of string)
parent
e59e9033f8
commit
faf7f6820b
|
@ -293,13 +293,14 @@ export class Stream {
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info('Applying filter to stream ' + this.streamId);
|
logger.info('Applying filter to stream ' + this.streamId);
|
||||||
options = !!options ? options : {};
|
options = options != null ? options : {};
|
||||||
if (typeof options !== 'string') {
|
let optionsString = options;
|
||||||
options = JSON.stringify(options);
|
if (typeof optionsString !== 'string') {
|
||||||
|
optionsString = JSON.stringify(optionsString);
|
||||||
}
|
}
|
||||||
this.session.openvidu.sendRequest(
|
this.session.openvidu.sendRequest(
|
||||||
'applyFilter',
|
'applyFilter',
|
||||||
{ streamId: this.streamId, type, options },
|
{ streamId: this.streamId, type, options: optionsString },
|
||||||
(error, response) => {
|
(error, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
logger.error('Error applying filter for Stream ' + this.streamId, error);
|
logger.error('Error applying filter for Stream ' + this.streamId, error);
|
||||||
|
|
Loading…
Reference in New Issue