auth static method

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

Authenticates SDK using remote service (Optional for the web).

Method performs https request to obtain license for customerID. Optional if web platform

  • mediaStreamTrack: Associated media track
  • customerID: Unique customerID for authentication
  • apiUrl: Optional custom authentication endpoint
  • Returns: AuthStatus indicating authentication result
  • Throws: Platform exceptions for communication errors

Implementation

static Future<AuthStatus> auth(
  MediaStreamTrack track,
  String customerID,
  {String? apiUrl}
) {
  return _impl.auth(track, customerID, apiUrl: apiUrl);
}