auth method
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 authenticationapiUrl
: 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;
}