What are the proper steps in closing a video stream using XPMobileSDK.js?

Hi, I’m using the SDK for Web. Currently the steps I took to close a video stream is:

1. Close the video connection via videoController.close()

2. Cancel the stream request via XPMobileSDK.cancelRequest

I noticed in the references, there’s a closeStream method. Is it a mandatory step to run that method or is my current steps sufficient to close and free up the resources?

Hi Clinton,

Calling closeStream method is not need, as it is called internally by the SDK.

Your current implementation seems just fine.

Hi Petar, thank you for the clarification. :slight_smile: