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.
Articles in this section
- How to use Completion handler for Exception Handling
- Firefox Pre-call test not supported
- Error Creating Session Using Vonage Video API .NET SDK
- Unable to Create Session Even Though API Key and Secret Are Valid
- HTTP 415 Error When Archiving Video Session
- Troubleshooting Invalid JWT When Creating a Video Session using REST API
- Camara Still in Use after Session Disconnect on Android
- Token Shows as Invalid
- HTTP 400 Error When Archiving Video Session
- 1541 Timed out while attempting to publish Error