VideoSDK Class Methods - iOS
config()
- Before initializing the meeting, you will first need to provide
token
. By usingconfig()
method, you can set the token property of VideoSDK class. - Please refer this documentation to generate a token.
Returns
void
getAudioPermissionStatus()
- Gives the status of Status for Audio Permission of your app.
Returns
authorisationStatus
- authorisationStatus:
- notDetermined
- restricted
- denied
- authorised
- authorisationStatus:
Example
VideoSDK.getAudioPermissionStatus()
getVideoPermissionStatus()
- Gives the status of Status for Video Permission of your app.
Returns
authorisationStatus
- authorisationStatus:
- notDetermined
- restricted
- denied
- authorised
- authorisationStatus:
Example
VideoSDK.getVideoPermissionStatus()
getAudioPermission()
It prompts the system alert to access the microphone for your app.
It will only prompt when the
authorisationStatus
for the audio permission isnotDetermined
.If the
authorisationStatus
isrestricted
ordenied
, you need to open settings using thehandlePermission
function of theAuthorisationDelegate
protocol to manually approve the microphone permission.Checkout our guide on how you can use
handlePermission
function to handle manual approval of permissions here
Returns
void
Example
VideoSDK.getAudioPermission()
getVideoPermission()
It prompts the system alert to access the camera for your app.
It will only prompt when the
authorisationStatus
for the audio permission isnotDetermined
.If the
authorisationStatus
isrestricted
ordenied
, you need to open settings using thehandlePermission
function of theAuthorisationDelegate
protocol to manually approve the camera permission.Checkout our guide on how you can use
handlePermission
function to handle manual approval of permissions here
Returns
void
Example
VideoSDK.getVideoPermission()
getCameras()
- It gives a string array of available cameras.
Returns
[String]
Example
VideoSDK.getCameras()
//Sample Output
["Front Camera", "BackCamera"]
getAudioDevices()
- It gives a string array of available audio output devices.
Returns
[String]
Example
VideoSDK.getAudioDevices()
//Sample Output
["Speaker", "iPhone Microphone"]
Got a Question? Ask us on discord