Android-cuttlefish cvd tool
Public Member Functions | Public Attributes | List of all members
webrtc_streaming::Streamer::Impl Class Reference
Inheritance diagram for webrtc_streaming::Streamer::Impl:
Inheritance graph
[legend]
Collaboration diagram for webrtc_streaming::Streamer::Impl:
Collaboration graph
[legend]

Public Member Functions

std::shared_ptr< ClientHandler > CreateClientHandler (int client_id)
 
void Register (std::weak_ptr< OperatorObserver > observer)
 
void SendMessageToClient (int client_id, const Json::Value &msg)
 
void DestroyClientHandler (int client_id)
 
void SetupCameraForClient (int client_id)
 
void OnOpen () override
 
void OnClose () override
 
void OnError (const std::string &error) override
 
void OnReceive (const uint8_t *msg, size_t length, bool is_binary) override
 
void HandleConfigMessage (const Json::Value &server_message)
 
void HandleClientMessage (const Json::Value &server_message)
 
Result< rtc::scoped_refptr< webrtc::PeerConnectionInterface > > Build (webrtc::PeerConnectionObserver &observer, const std::vector< webrtc::PeerConnectionInterface::IceServer > &per_connection_servers) override
 
- Public Member Functions inherited from cuttlefish::webrtc_streaming::ServerConnectionObserver
virtual ~ServerConnectionObserver ()=default
 
virtual void OnOpen ()=0
 
virtual void OnClose ()=0
 
virtual void OnError (const std::string &error)=0
 
virtual void OnReceive (const uint8_t *msg, size_t length, bool is_binary)=0
 
- Public Member Functions inherited from cuttlefish::webrtc_streaming::PeerConnectionBuilder
virtual ~PeerConnectionBuilder ()=default
 
virtual Result< rtc::scoped_refptr< webrtc::PeerConnectionInterface > > Build (webrtc::PeerConnectionObserver &observer, const std::vector< webrtc::PeerConnectionInterface::IceServer > &per_connection_servers)=0
 

Public Attributes

StreamerConfig config_
 
OperatorServerConfig operator_config_
 
std::unique_ptr< ServerConnection > server_connection_
 
std::shared_ptr< ConnectionObserverFactory > connection_observer_factory_
 
rtc::scoped_refptr< webrtc::PeerConnectionFactoryInterface > peer_connection_factory_
 
std::unique_ptr< rtc::Thread > network_thread_
 
std::unique_ptr< rtc::Thread > worker_thread_
 
std::unique_ptr< rtc::Thread > signal_thread_
 
std::map< std::string, DisplayDescriptor > displays_
 
std::map< std::string, TouchpadDescriptor > touchpads_
 
std::map< std::string, rtc::scoped_refptr< AudioTrackSourceImpl > > audio_sources_
 
std::map< int, std::shared_ptr< ClientHandler > > clients_
 
std::weak_ptr< OperatorObserver > operator_observer_
 
std::map< std::string, std::string > hardware_
 
std::vector< ControlPanelButtonDescriptor > custom_control_panel_buttons_
 
std::shared_ptr< AudioDeviceModuleWrapper > audio_device_module_
 
std::unique_ptr< CameraStreamer > camera_streamer_
 
int registration_retries_left_ = kRegistrationRetries
 
int retry_interval_ms_ = kRetryFirstIntervalMs
 
RecordingManager * recording_manager_ = nullptr
 

Member Function Documentation

◆ Build()

Result< rtc::scoped_refptr< webrtc::PeerConnectionInterface > > webrtc_streaming::Streamer::Impl::Build ( webrtc::PeerConnectionObserver &  observer,
const std::vector< webrtc::PeerConnectionInterface::IceServer > &  per_connection_servers 
)
overridevirtual

◆ CreateClientHandler()

std::shared_ptr< ClientHandler > webrtc_streaming::Streamer::Impl::CreateClientHandler ( int  client_id)

◆ DestroyClientHandler()

void webrtc_streaming::Streamer::Impl::DestroyClientHandler ( int  client_id)

◆ HandleClientMessage()

void webrtc_streaming::Streamer::Impl::HandleClientMessage ( const Json::Value &  server_message)

◆ HandleConfigMessage()

void webrtc_streaming::Streamer::Impl::HandleConfigMessage ( const Json::Value &  server_message)

◆ OnClose()

void webrtc_streaming::Streamer::Impl::OnClose ( )
overridevirtual

◆ OnError()

void webrtc_streaming::Streamer::Impl::OnError ( const std::string &  error)
overridevirtual

◆ OnOpen()

void webrtc_streaming::Streamer::Impl::OnOpen ( )
overridevirtual

◆ OnReceive()

void webrtc_streaming::Streamer::Impl::OnReceive ( const uint8_t *  msg,
size_t  length,
bool  is_binary 
)
overridevirtual

◆ Register()

void webrtc_streaming::Streamer::Impl::Register ( std::weak_ptr< OperatorObserver >  observer)

◆ SendMessageToClient()

void webrtc_streaming::Streamer::Impl::SendMessageToClient ( int  client_id,
const Json::Value &  msg 
)

◆ SetupCameraForClient()

void webrtc_streaming::Streamer::Impl::SetupCameraForClient ( int  client_id)

Member Data Documentation

◆ audio_device_module_

std::shared_ptr<AudioDeviceModuleWrapper> webrtc_streaming::Streamer::Impl::audio_device_module_

◆ audio_sources_

std::map<std::string, rtc::scoped_refptr<AudioTrackSourceImpl> > webrtc_streaming::Streamer::Impl::audio_sources_

◆ camera_streamer_

std::unique_ptr<CameraStreamer> webrtc_streaming::Streamer::Impl::camera_streamer_

◆ clients_

std::map<int, std::shared_ptr<ClientHandler> > webrtc_streaming::Streamer::Impl::clients_

◆ config_

StreamerConfig webrtc_streaming::Streamer::Impl::config_

◆ connection_observer_factory_

std::shared_ptr<ConnectionObserverFactory> webrtc_streaming::Streamer::Impl::connection_observer_factory_

◆ custom_control_panel_buttons_

std::vector<ControlPanelButtonDescriptor> webrtc_streaming::Streamer::Impl::custom_control_panel_buttons_

◆ displays_

std::map<std::string, DisplayDescriptor> webrtc_streaming::Streamer::Impl::displays_

◆ hardware_

std::map<std::string, std::string> webrtc_streaming::Streamer::Impl::hardware_

◆ network_thread_

std::unique_ptr<rtc::Thread> webrtc_streaming::Streamer::Impl::network_thread_

◆ operator_config_

OperatorServerConfig webrtc_streaming::Streamer::Impl::operator_config_

◆ operator_observer_

std::weak_ptr<OperatorObserver> webrtc_streaming::Streamer::Impl::operator_observer_

◆ peer_connection_factory_

rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> webrtc_streaming::Streamer::Impl::peer_connection_factory_

◆ recording_manager_

RecordingManager* webrtc_streaming::Streamer::Impl::recording_manager_ = nullptr

◆ registration_retries_left_

int webrtc_streaming::Streamer::Impl::registration_retries_left_ = kRegistrationRetries

◆ retry_interval_ms_

int webrtc_streaming::Streamer::Impl::retry_interval_ms_ = kRetryFirstIntervalMs

◆ server_connection_

std::unique_ptr<ServerConnection> webrtc_streaming::Streamer::Impl::server_connection_

◆ signal_thread_

std::unique_ptr<rtc::Thread> webrtc_streaming::Streamer::Impl::signal_thread_

◆ touchpads_

std::map<std::string, TouchpadDescriptor> webrtc_streaming::Streamer::Impl::touchpads_

◆ worker_thread_

std::unique_ptr<rtc::Thread> webrtc_streaming::Streamer::Impl::worker_thread_

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