"setBackgroundImage()" & "enableEffect()" functions is not present in "@antmedia/webrtc_adaptor" library in angular( version 13) #5498
Replies: 5 comments 18 replies
-
Can you provide some code snippets how are you trying to call those functions. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Yes, It is angular. // Problem is here // In template you can do like this //update your ngAfterViewInit hook like this, no need to use navigator.mediaDevices.getUserMedia({ audio: true, video: true }),
|
Beta Was this translation helpful? Give feedback.
-
I still facing this problem see the attached screenshot below. |
Beta Was this translation helpful? Give feedback.
-
I had used the same code which swati sent to me (even node_modules files are same). I also tried to regenerate the issue by creating fresh npm i. I am away from my system. Will send you the complete project today night. Can you please try checking this project on another machine. |
Beta Was this translation helpful? Give feedback.
-
I am facing problem for publishing the stream with virtual background Image and also with enabling effect on video. But When I am trying to run "https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/publish_webrtc_virtual_background.html" code sample in my project, I received "Cannot read properties of undefined (reading 'setBackgroundImage')" & "Cannot read properties of undefined (reading 'enableEffect')" error. Please help me to resolve this problem.
Thankyou
Beta Was this translation helpful? Give feedback.
All reactions