Skip to content

Script Examples

Load External Libraries

UI Builder allows loading third party libraries to use in the code editor. In this example, we will add the Axios library to our script

Load External Library via URL

1
loadLibrary('https://cdnjs.cloudflare.com/ajax/libs/axios/0.24.0/axios.min.js')

Load External Library installed on Erizos Studio Server

In many cases, access to the public interent is blocked, in this scenario, you can download and save the library on the Erizos Studio Server and load it into UI Builder

Info

External Library files should be located in:

Erizos Studio Server: C:\ProgramData\Erizos\Studio Server\Resources\Libs\ on the Erizos Studio Server Machine.

Erizos Studio Standalone: C:\ProgramData\Erizos\Studio\Resources\Libs\

1
loadLibrary('axios.min')