getUserMedia method

void getUserMedia(
  1. MediaStreamConstraints constraints,
  2. NavigatorUserMediaSuccessCallback successCallback,
  3. NavigatorUserMediaErrorCallback errorCallback
)

Implementation

void getUserMedia(
        MediaStreamConstraints constraints,
        NavigatorUserMediaSuccessCallback successCallback,
        NavigatorUserMediaErrorCallback errorCallback) =>
    js_util.callMethod(this, 'getUserMedia', [
      constraints,
      allowInterop(successCallback),
      allowInterop(errorCallback)
    ]);