Watch: Create the script.js file
For the next step, we will need to create a the unique options that control connection between Agora and our client.
Process:
Open a Finder window with your project folders before starting.
With TextEdit open, click New.
Copy the code this code:
Paste the code into the text editor.
Click Save.
Select the Scripts folder in order to save the file into this folder.
In the Save As field, type script.
Click Save.
From the Finder window, open the Scripts folder.
Select the Script file.
Press Control + Left-Click (or Right-Click) and select Get Info.
In the Name & Extension field, change the file format to .js.
Confirm the change. Click Use .js.
There are three critical items that we will need to update in order to complete the configuration. These are:
- AppID
- Token
- Channel
- Mode
- Stream
- Codec