Thanks for your answer, but I already know this method and I can't access the API atm. Are there any methods in the Web SDK (js) that we use to create sessions and streams that archive the same result?
ref: https://flashphoner.com/docs/api/WCS5/client/web-sdk/latest/Stream.html