Interface StartCaptureSessionCallback

All Superinterfaces:
AsyncCallback<StartCaptureSessionCallback.Params,StartCaptureSessionCallback.Action>, BrowserAsyncCallback<StartCaptureSessionCallback.Params,StartCaptureSessionCallback.Action>, BrowserCallback, Callback
All Known Implementing Classes:
DefaultStartCaptureSessionCallback, DefaultStartCaptureSessionCallback, DefaultStartCaptureSessionCallback

This callback is invoked when a web page requests permission to start a capture session.

Use the StartCaptureSessionCallback.Action.selectSource(CaptureSource, AudioCaptureMode) or the StartCaptureSessionCallback.Action.selectSource(Browser, AudioCaptureMode) method to allow the web page to capture the specified source.

Use the StartCaptureSessionCallback.Action.cancel() method to deny the permission.

If the callback throws an exception, the StartCaptureSessionCallback.Action.cancel() is automatically invoked.

Since:
7.20