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

#include <recording_manager.h>

Collaboration diagram for cuttlefish::webrtc_streaming::RecordingManager:
Collaboration graph
[legend]

Public Member Functions

 RecordingManager ()
 
void AddSource (size_t width, size_t height, std::shared_ptr<::webrtc::VideoTrackSourceInterface > video, const std::string &label)
 
void RemoveSource (const std::string &label)
 
void Start ()
 
void Stop ()
 
void WaitForSources (size_t num_sources)
 

Private Member Functions

void StartSingleRecorder (const std::string &label)
 

Private Attributes

bool recording_
 
std::string recording_directory_
 
std::string instance_name_
 
std::mutex mutex_
 
std::condition_variable video_source_ready_signal_
 
std::map< std::string, std::unique_ptr< Source > > sources_
 
std::map< std::string, std::unique_ptr< cuttlefish::webrtc_streaming::LocalRecorder > > local_recorders_
 

Constructor & Destructor Documentation

◆ RecordingManager()

cuttlefish::webrtc_streaming::RecordingManager::RecordingManager ( )

Member Function Documentation

◆ AddSource()

void cuttlefish::webrtc_streaming::RecordingManager::AddSource ( size_t  width,
size_t  height,
std::shared_ptr<::webrtc::VideoTrackSourceInterface >  video,
const std::string &  label 
)

◆ RemoveSource()

void cuttlefish::webrtc_streaming::RecordingManager::RemoveSource ( const std::string &  label)

◆ Start()

void cuttlefish::webrtc_streaming::RecordingManager::Start ( )

◆ StartSingleRecorder()

void cuttlefish::webrtc_streaming::RecordingManager::StartSingleRecorder ( const std::string &  label)
private

◆ Stop()

void cuttlefish::webrtc_streaming::RecordingManager::Stop ( )

◆ WaitForSources()

void cuttlefish::webrtc_streaming::RecordingManager::WaitForSources ( size_t  num_sources)

Member Data Documentation

◆ instance_name_

std::string cuttlefish::webrtc_streaming::RecordingManager::instance_name_
private

◆ local_recorders_

std::map<std::string, std::unique_ptr<cuttlefish::webrtc_streaming::LocalRecorder> > cuttlefish::webrtc_streaming::RecordingManager::local_recorders_
private

◆ mutex_

std::mutex cuttlefish::webrtc_streaming::RecordingManager::mutex_
private

◆ recording_

bool cuttlefish::webrtc_streaming::RecordingManager::recording_
private

◆ recording_directory_

std::string cuttlefish::webrtc_streaming::RecordingManager::recording_directory_
private

◆ sources_

std::map<std::string, std::unique_ptr<Source> > cuttlefish::webrtc_streaming::RecordingManager::sources_
private

◆ video_source_ready_signal_

std::condition_variable cuttlefish::webrtc_streaming::RecordingManager::video_source_ready_signal_
private

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