Why is the container DIV destroyed when I publish or subscribe?
Question
Why is the container DIV destroyed when I publish or subscribe?
Applies To
- Video API
- JavaScript
Answer
This is the correct behavior for the Vonage Video JavaScript API. The element you pass into the Session.publish()
or Session.subscribe()
method is an HTML DOM element to be replaced. It is not a container element. You can create a container DIV element that contains another replacement element, and then pass that replacement element to the Session.publish()
or Session.subscribe()
method.
Comments
0 comments
Please sign in to leave a comment.