Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
streamer.cpp File Reference
#include "cuttlefish/host/frontend/webrtc/libdevice/streamer.h"
#include <android-base/logging.h>
#include <json/json.h>
#include <api/audio_codecs/audio_decoder_factory.h>
#include <api/audio_codecs/audio_encoder_factory.h>
#include <api/audio_codecs/builtin_audio_decoder_factory.h>
#include <api/audio_codecs/builtin_audio_encoder_factory.h>
#include <api/create_peerconnection_factory.h>
#include <api/peer_connection_interface.h>
#include <api/video_codecs/builtin_video_decoder_factory.h>
#include <api/video_codecs/builtin_video_encoder_factory.h>
#include <api/video_codecs/video_decoder_factory.h>
#include <api/video_codecs/video_encoder_factory.h>
#include <media/base/video_broadcaster.h>
#include <pc/video_track_source.h>
#include "cuttlefish/host/frontend/webrtc/libcommon/audio_device.h"
#include "cuttlefish/host/frontend/webrtc/libcommon/peer_connection_utils.h"
#include "cuttlefish/host/frontend/webrtc/libcommon/utils.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/audio_track_source_impl.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/camera_streamer.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/client_handler.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/server_connection.h"
#include "cuttlefish/host/frontend/webrtc/libdevice/video_track_source_impl.h"
#include "cuttlefish/host/frontend/webrtc_operator/constants/signaling_constants.h"
Include dependency graph for streamer.cpp:

Classes

struct  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::DisplayDescriptor
 
struct  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::TouchpadDescriptor
 
struct  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::ControlPanelButtonDescriptor
 
struct  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::OperatorServerConfig
 
class  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::AudioDeviceModuleWrapper
 
class  webrtc_streaming::Streamer::Impl
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::webrtc_streaming
 
namespace  cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}
 

Functions

bool cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::ParseMessage (const uint8_t *data, size_t length, Json::Value *msg_out)
 

Variables

constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kStreamIdField = "stream_id"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kLabelField = "label"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kXResField = "x_res"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kYResField = "y_res"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kDpiField = "dpi"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kIsTouchField = "is_touch"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kDisplaysField = "displays"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kTouchpadsField = "touchpads"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kAudioStreamsField = "audio_streams"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kHardwareField = "hardware"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kOpenwrtDeviceIdField = "openwrt_device_id"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kOpenwrtAddrField = "openwrt_addr"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kAdbPortField = "adb_port"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlEnvProxyServerPathField
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonCommand = "command"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonTitle = "title"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonIconName = "icon_name"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonShellCommand = "shell_command"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonDeviceStates = "device_states"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonLidSwitchOpen = "lid_switch_open"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kControlPanelButtonHingeAngleValue = "hinge_angle_value"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kCustomControlPanelButtonsField = "custom_control_panel_buttons"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kMouseEnabled = "mouse_enabled"
 
constexpr auto cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kGamepadEnabled = "gamepad_enabled"
 
constexpr int cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kRegistrationRetries = 3
 
constexpr int cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kRetryFirstIntervalMs = 1000
 
constexpr int cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kReconnectRetries = 100
 
constexpr int cuttlefish::webrtc_streaming::anonymous_namespace{streamer.cpp}::kReconnectIntervalMs = 1000