The Voximplant.Endpoint class represents any remote media unit in a call (Web/iOS/Android application, SIP or regular phone, etc.). Each Endpoint instance has built-in methods for managing video streams and also contains:
- displayName, which is specified while creating a user in the Voximplant control panel
- sipUri of an Endpoint
- userName in terms of sipUri
Endpoints have their own events, e.g., to detect starting or terminating of receiving a video stream from a remote participant.
Note that the Voximplant.Call instance has the Call.getEndpoints method to retrieve all current endpoints for a call; it also has the CallEventTypes.EndpointAdded event on adding a new endpoint. We recommend assigning handlers for the Voximplant.EndpointEventTypes at the moment when the CallEventTypes.EndpointAdded event is triggered, see a React Native example: