auth method

Future<AuthStatus> auth(
  1. String customerID, {
  2. String? apiUrl,
})

Authenticates SDK using remote service (for Android & iOS).

Method performs https request to obtain license for customerID. For the web, this method waits until models are loaded.

  • customerID: License key for authentication
  • apiUrl: Optional custom authentication api server url
  • Returns: AuthStatus indicating authentication result

Implementation

Future<rtc.AuthStatus> auth(String customerID, {String? apiUrl}) async {
  await rtc.VideoEffectsSdk.auth(mediaStreamTrack, customerID, apiUrl: apiUrl);
  return rtc.AuthStatus.active;
}