Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::webrtc_streaming::Streamer Class Reference

#include <streamer.h>

Public Member Functions

 ~Streamer ()=default
 
std::shared_ptr< VideoSinkAddDisplay (const std::string &label, int width, int height, int dpi, bool touch_enabled)
 
bool RemoveDisplay (const std::string &label)
 
bool AddTouchpad (const std::string &label, int width, int height)
 
void SetHardwareSpec (std::string key, std::string value)
 
template<typename V >
void SetHardwareSpec (std::string key, V value)
 
std::shared_ptr< AudioSinkAddAudioStream (const std::string &label)
 
std::shared_ptr< AudioSourceGetAudioSource ()
 
CameraControllerAddCamera (unsigned int port, unsigned int cid, bool vhost_user)
 
void AddCustomControlPanelButton (const std::string &command, const std::string &title, const std::string &icon_name)
 
void AddCustomControlPanelButtonWithShellCommand (const std::string &command, const std::string &title, const std::string &icon_name, const std::string &shell_command)
 
void AddCustomControlPanelButtonWithDeviceStates (const std::string &command, const std::string &title, const std::string &icon_name, const std::vector< DeviceState > &device_states)
 
void Register (std::weak_ptr< OperatorObserver > operator_observer)
 
void Unregister ()
 

Static Public Member Functions

static std::unique_ptr< StreamerCreate (const StreamerConfig &cfg, RecordingManager &recording_manager, std::shared_ptr< ConnectionObserverFactory > factory)
 

Private Member Functions

 Streamer (std::unique_ptr< Impl > impl)
 

Private Attributes

std::shared_ptr< Impl > impl_
 

Constructor & Destructor Documentation

◆ ~Streamer()

cuttlefish::webrtc_streaming::Streamer::~Streamer ( )
default

◆ Streamer()

cuttlefish::webrtc_streaming::Streamer::Streamer ( std::unique_ptr< Impl >  impl)
private

Member Function Documentation

◆ AddAudioStream()

std::shared_ptr< AudioSink > cuttlefish::webrtc_streaming::Streamer::AddAudioStream ( const std::string &  label)

◆ AddCamera()

CameraController * cuttlefish::webrtc_streaming::Streamer::AddCamera ( unsigned int  port,
unsigned int  cid,
bool  vhost_user 
)

◆ AddCustomControlPanelButton()

void cuttlefish::webrtc_streaming::Streamer::AddCustomControlPanelButton ( const std::string &  command,
const std::string &  title,
const std::string &  icon_name 
)

◆ AddCustomControlPanelButtonWithDeviceStates()

void cuttlefish::webrtc_streaming::Streamer::AddCustomControlPanelButtonWithDeviceStates ( const std::string &  command,
const std::string &  title,
const std::string &  icon_name,
const std::vector< DeviceState > &  device_states 
)

◆ AddCustomControlPanelButtonWithShellCommand()

void cuttlefish::webrtc_streaming::Streamer::AddCustomControlPanelButtonWithShellCommand ( const std::string &  command,
const std::string &  title,
const std::string &  icon_name,
const std::string &  shell_command 
)

◆ AddDisplay()

std::shared_ptr< VideoSink > cuttlefish::webrtc_streaming::Streamer::AddDisplay ( const std::string &  label,
int  width,
int  height,
int  dpi,
bool  touch_enabled 
)

◆ AddTouchpad()

bool cuttlefish::webrtc_streaming::Streamer::AddTouchpad ( const std::string &  label,
int  width,
int  height 
)

◆ Create()

std::unique_ptr< Streamer > cuttlefish::webrtc_streaming::Streamer::Create ( const StreamerConfig cfg,
RecordingManager recording_manager,
std::shared_ptr< ConnectionObserverFactory factory 
)
static

◆ GetAudioSource()

std::shared_ptr< AudioSource > cuttlefish::webrtc_streaming::Streamer::GetAudioSource ( )

◆ Register()

void cuttlefish::webrtc_streaming::Streamer::Register ( std::weak_ptr< OperatorObserver operator_observer)

◆ RemoveDisplay()

bool cuttlefish::webrtc_streaming::Streamer::RemoveDisplay ( const std::string &  label)

◆ SetHardwareSpec() [1/2]

void cuttlefish::webrtc_streaming::Streamer::SetHardwareSpec ( std::string  key,
std::string  value 
)

◆ SetHardwareSpec() [2/2]

template<typename V >
void cuttlefish::webrtc_streaming::Streamer::SetHardwareSpec ( std::string  key,
value 
)
inline

◆ Unregister()

void cuttlefish::webrtc_streaming::Streamer::Unregister ( )

Member Data Documentation

◆ impl_

std::shared_ptr<Impl> cuttlefish::webrtc_streaming::Streamer::impl_
private

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