Skip to main content
Version: 2.0.x

VideoSDK Class Methods - iOS

config()

  • Before initializing the meeting, you will first need to provide token. By using config() 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

Example

VideoSDK.getAudioPermissionStatus()

getVideoPermissionStatus()

  • Gives the status of Status for Video Permission of your app.

Returns

  • authorisationStatus

    • authorisationStatus:
      • notDetermined
      • restricted
      • denied
      • authorised

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 is notDetermined.

  • If the authorisationStatus is restricted or denied, you need to open settings using the handlePermission function of the AuthorisationDelegate 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 is notDetermined.

  • If the authorisationStatus is restricted or denied, you need to open settings using the handlePermission function of the AuthorisationDelegate 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