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);
|
||||
options = !!options ? options : {};
|
||||
if (typeof options !== 'string') {
|
||||
options = JSON.stringify(options);
|
||||
options = options != null ? options : {};
|
||||
let optionsString = options;
|
||||
if (typeof optionsString !== 'string') {
|
||||
optionsString = JSON.stringify(optionsString);
|
||||
}
|
||||
this.session.openvidu.sendRequest(
|
||||
'applyFilter',
|
||||
{ streamId: this.streamId, type, options },
|
||||
{ streamId: this.streamId, type, options: optionsString },
|
||||
(error, response) => {
|
||||
if (error) {
|
||||
logger.error('Error applying filter for Stream ' + this.streamId, error);
|
||||
|
|
Loading…
Reference in New Issue