Molybden API
Loading...
Searching...
No Matches
molybden::StartCaptureSessionAction Class Reference

The BrowserDelegates::onStartCaptureSession action. More...

#include <browser_delegates.hpp>

Inheritance diagram for molybden::StartCaptureSessionAction:
molybden::Action

Public Member Functions

 StartCaptureSessionAction (std::unique_ptr< rpc::internal::Callback > callback)
 
void selectSource (const CaptureSource &source, bool capture_audio)
 Use the given capture source.
 
void selectSource (std::shared_ptr< Browser > browser, bool capture_audio)
 Use the given browser instance as the capture source.
 
void cancel ()
 Cancel the capture session request.
 
void prompt ()
 Display the default dialog for choosing the capture source.
 
- Public Member Functions inherited from molybden::Action
 Action (std::unique_ptr< rpc::internal::Callback > callback)
 

Additional Inherited Members

- Protected Attributes inherited from molybden::Action
std::unique_ptr< rpc::internal::Callback > callback_
 

Detailed Description

Member Function Documentation

◆ selectSource()

void molybden::StartCaptureSessionAction::selectSource ( const CaptureSource source,
bool  capture_audio 
)

Use the given capture source.

It must be from the available capture sources received through the StartCaptureSessionArgs.

If the screen capture is forbidden by the system security permissions the request will be cancelled. This is usual for macOS where the screen or application window capture must be explicitly allowed in the System Preferences.


The documentation for this class was generated from the following file: