/device/google/cuttlefish/host/frontend/webrtc/libcommon/ |
D | connection_controller.h | 35 virtual Result<rtc::scoped_refptr<webrtc::PeerConnectionInterface>> Build( 36 webrtc::PeerConnectionObserver& observer, 37 const std::vector<webrtc::PeerConnectionInterface::IceServer>& 46 class ConnectionController : public webrtc::PeerConnectionObserver { 62 Result<webrtc::PeerConnectionInterface::PeerConnectionState> 67 rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver) = 0; 70 rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver) = 0; 73 rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel) = 0; 84 const std::vector<webrtc::PeerConnectionInterface::IceServer>& 94 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection() { in peer_connection() [all …]
|
D | connection_controller.cpp | 38 : public webrtc::CreateSessionDescriptionObserver { 43 void OnSuccess(webrtc::SessionDescriptionInterface* desc) override { in OnSuccess() 49 void OnFailure(webrtc::RTCError error) override { in OnFailure() 58 : public webrtc::SetSessionDescriptionObserver { 64 void OnFailure(webrtc::RTCError error) override { in OnFailure() 73 : public webrtc::SetRemoteDescriptionObserverInterface { 78 void OnSetRemoteDescriptionComplete(webrtc::RTCError error) override { in OnSetRemoteDescriptionComplete() 101 const std::vector<webrtc::PeerConnectionInterface::IceServer>& in RequestOffer() 104 webrtc::PeerConnectionInterface::PeerConnectionState::kNew); in RequestOffer() 131 std::move(candidate), [this](webrtc::RTCError error) { in AddPendingIceCandidates() [all …]
|
D | peer_connection_utils.cpp | 45 Result<rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>> 49 rtc::scoped_refptr<webrtc::AudioDeviceModule> audio_device_module) { in CreatePeerConnectionFactory() 50 auto peer_connection_factory = webrtc::CreatePeerConnectionFactory( in CreatePeerConnectionFactory() 52 webrtc::CreateBuiltinAudioEncoderFactory(), in CreatePeerConnectionFactory() 53 webrtc::CreateBuiltinAudioDecoderFactory(), in CreatePeerConnectionFactory() 56 webrtc::CreateBuiltinVideoEncoderFactory()), in CreatePeerConnectionFactory() 57 webrtc::CreateBuiltinVideoDecoderFactory(), nullptr /* audio_mixer */, in CreatePeerConnectionFactory() 62 webrtc::PeerConnectionFactoryInterface::Options options; in CreatePeerConnectionFactory() 71 Result<rtc::scoped_refptr<webrtc::PeerConnectionInterface>> 73 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> in CreatePeerConnection() [all …]
|
D | audio_device.cpp | 59 webrtc::AudioTransport* audio_callback) { in RegisterAudioCallback() 73 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize], in PlayoutDeviceName() 74 char guid[webrtc::kAdmMaxGuidSize]) { in PlayoutDeviceName() 80 strncpy(name, device_name, webrtc::kAdmMaxDeviceNameSize); in PlayoutDeviceName() 81 name[webrtc::kAdmMaxDeviceNameSize - 1] = '\0'; in PlayoutDeviceName() 82 strncpy(guid, device_guid, webrtc::kAdmMaxGuidSize); in PlayoutDeviceName() 83 guid[webrtc::kAdmMaxGuidSize - 1] = '\0'; in PlayoutDeviceName() 87 uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize], in RecordingDeviceName() 88 char guid[webrtc::kAdmMaxGuidSize]) { in RecordingDeviceName() 94 strncpy(name, device_name, webrtc::kAdmMaxDeviceNameSize); in RecordingDeviceName() [all …]
|
D | utils.cpp | 78 Result<std::unique_ptr<webrtc::SessionDescriptionInterface>> 80 webrtc::SdpType sdp_type) { in ParseSessionDescription() 85 webrtc::CreateSessionDescription(sdp_type, remote_desc_str); in ParseSessionDescription() 90 Result<std::unique_ptr<webrtc::IceCandidateInterface>> ParseIceCandidate( in ParseIceCandidate() 106 std::unique_ptr<webrtc::IceCandidateInterface>(webrtc::CreateIceCandidate( in ParseIceCandidate() 119 Result<std::vector<webrtc::PeerConnectionInterface::IceServer>> 121 std::vector<webrtc::PeerConnectionInterface::IceServer> ret; in ParseIceServersMessage() 130 webrtc::PeerConnectionInterface::IceServer ice_server; in ParseIceServersMessage() 153 const std::vector<webrtc::PeerConnectionInterface::IceServer>& in GenerateIceServersMessage() 155 return ToArray<webrtc::PeerConnectionInterface::IceServer>( in GenerateIceServersMessage() [all …]
|
D | vp8only_encoder_factory.h | 25 class VP8OnlyEncoderFactory : public webrtc::VideoEncoderFactory { 27 VP8OnlyEncoderFactory(std::unique_ptr<webrtc::VideoEncoderFactory> inner); 29 std::vector<webrtc::SdpVideoFormat> GetSupportedFormats() const override; 31 std::unique_ptr<webrtc::VideoEncoder> CreateVideoEncoder( 32 const webrtc::SdpVideoFormat& format) override; 37 std::unique_ptr<webrtc::VideoEncoderFactory> inner_;
|
D | vp8only_encoder_factory.cpp | 22 std::unique_ptr<webrtc::VideoEncoderFactory> inner) in VP8OnlyEncoderFactory() 25 std::vector<webrtc::SdpVideoFormat> VP8OnlyEncoderFactory::GetSupportedFormats() in GetSupportedFormats() 27 std::vector<webrtc::SdpVideoFormat> ret; in GetSupportedFormats() 37 std::unique_ptr<webrtc::VideoEncoder> VP8OnlyEncoderFactory::CreateVideoEncoder( in CreateVideoEncoder() 38 const webrtc::SdpVideoFormat& format) { in CreateVideoEncoder() 42 std::unique_ptr<webrtc::VideoEncoderFactory::EncoderSelectorInterface>
|
D | peer_connection_utils.h | 30 Result<rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>> 34 rtc::scoped_refptr<webrtc::AudioDeviceModule> audio_device_module); 37 Result<rtc::scoped_refptr<webrtc::PeerConnectionInterface>> 39 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 41 webrtc::PeerConnectionDependencies dependencies, 43 const std::vector<webrtc::PeerConnectionInterface::IceServer>&
|
D | audio_device.h | 28 class CfAudioDeviceModule : public webrtc::AudioDeviceModule, 43 int32_t RegisterAudioCallback(webrtc::AudioTransport* audioCallback) override; 54 char name[webrtc::kAdmMaxDeviceNameSize], 55 char guid[webrtc::kAdmMaxGuidSize]) override; 57 char name[webrtc::kAdmMaxDeviceNameSize], 58 char guid[webrtc::kAdmMaxGuidSize]) override; 137 webrtc::AudioTransport* audio_callback_ = nullptr;
|
D | utils.h | 40 Result<std::unique_ptr<webrtc::SessionDescriptionInterface>> 42 webrtc::SdpType sdp_type); 45 Result<std::unique_ptr<webrtc::IceCandidateInterface>> ParseIceCandidate( 55 Result<std::vector<webrtc::PeerConnectionInterface::IceServer>> 60 const std::vector<webrtc::PeerConnectionInterface::IceServer>& ice_servers);
|
/device/google/cuttlefish/host/frontend/webrtc/libdevice/ |
D | local_recorder.cpp | 46 : public webrtc::EncodedImageCallback 47 , public rtc::VideoSinkInterface<webrtc::VideoFrame> { 58 virtual void OnFrame(const webrtc::VideoFrame& frame) override; 61 virtual webrtc::EncodedImageCallback::Result OnEncodedImage( 62 const webrtc::EncodedImage& encoded_image, 63 const webrtc::CodecSpecificInfo* codec_specific_info) override; 66 std::shared_ptr<webrtc::VideoTrackSourceInterface> source_; 67 std::unique_ptr<webrtc::VideoEncoder> video_encoder_; 74 std::list<webrtc::VideoFrame> encode_queue_; 82 std::unique_ptr<webrtc::VideoEncoderFactory> encoder_factory_; [all …]
|
D | client_handler.cpp | 36 void AddOrUpdateSink(rtc::VideoSinkInterface<webrtc::VideoFrame> *sink, in AddOrUpdateSink() 45 void SetVideoTrack(webrtc::VideoTrackInterface *track) { in SetVideoTrack() 52 void UnsetVideoTrack(webrtc::VideoTrackInterface *track) { in UnsetVideoTrack() 59 webrtc::VideoTrackInterface* video_track_; 60 rtc::VideoSinkInterface<webrtc::VideoFrame> *sink_ = nullptr; 88 rtc::scoped_refptr<webrtc::RtpSenderInterface> 90 rtc::scoped_refptr<webrtc::MediaStreamTrackInterface> track, in AddTrackToConnection() 91 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection, in AddTrackToConnection() 107 rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track, in AddDisplay() 144 rtc::scoped_refptr<webrtc::AudioTrackInterface> audio_track, in AddAudio() [all …]
|
D | data_channels.cpp | 27 class DataChannelHandler : public webrtc::DataChannelObserver { 36 void OnMessage(const webrtc::DataBuffer &msg) override; 40 virtual rtc::scoped_refptr<webrtc::DataChannelInterface> channel() = 0; 44 virtual Result<void> OnMessageInner(const webrtc::DataBuffer &msg) = 0; 48 virtual void OnStateChangeInner(webrtc::DataChannelInterface::DataState) {} in OnStateChangeInner() 80 Result<void> OnMessageInner(const webrtc::DataBuffer &msg) override { in OnMessageInner() 155 webrtc::DataChannelInterface::DataState state) override { in OnStateChangeInner() 156 if (state == webrtc::DataChannelInterface::kOpen) { in OnStateChangeInner() 160 Result<void> OnMessageInner(const webrtc::DataBuffer &msg) override { in OnMessageInner() 224 Result<void> OnMessageInner(const webrtc::DataBuffer &msg) override { in OnMessageInner() [all …]
|
D | client_handler.h | 65 bool AddDisplay(rtc::scoped_refptr<webrtc::VideoTrackInterface> track, 69 bool AddAudio(rtc::scoped_refptr<webrtc::AudioTrackInterface> track, 78 Result<webrtc::PeerConnectionInterface::PeerConnectionState> status) override; 80 rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel) override; 82 rtc::scoped_refptr<webrtc::RtpTransceiverInterface> transceiver) override; 84 rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver) override; 92 Result<rtc::scoped_refptr<webrtc::PeerConnectionInterface>> Build( 93 webrtc::PeerConnectionObserver& observer, 94 const std::vector<webrtc::PeerConnectionInterface::IceServer>& 108 rtc::scoped_refptr<webrtc::RtpSenderInterface> AddTrackToConnection( [all …]
|
D | audio_track_source_impl.h | 29 class AudioTrackSourceImpl : public webrtc::AudioSourceInterface { 39 void AddSink(webrtc::AudioTrackSinkInterface* sink) override; 40 void RemoveSink(webrtc::AudioTrackSinkInterface* sink) override; 54 void RegisterObserver(webrtc::ObserverInterface* observer) override; 55 void UnregisterObserver(webrtc::ObserverInterface* observer) override; 60 std::set<webrtc::AudioTrackSinkInterface*> sinks_;
|
D | streamer.cpp | 93 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source; 111 std::vector<webrtc::PeerConnectionInterface::IceServer> servers; 161 Result<rtc::scoped_refptr<webrtc::PeerConnectionInterface>> Build( 162 webrtc::PeerConnectionObserver& observer, 163 const std::vector<webrtc::PeerConnectionInterface::IceServer>& 172 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> 267 rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source2 = in AddDisplay() 269 auto deleter = [](webrtc::VideoTrackSourceInterface* source) { in AddDisplay() 272 std::shared_ptr<webrtc::VideoTrackSourceInterface> source_shared( in AddDisplay() 511 webrtc::TimeDelta::Millis(retry_interval_ms_)); in OnClose() [all …]
|
D | video_track_source_impl.cpp | 26 class VideoFrameWrapper : public webrtc::I420BufferInterface { 55 : webrtc::VideoTrackSource(false), width_(width), height_(height) {} in VideoTrackSourceImpl() 60 webrtc::VideoFrame::Builder() in OnFrame() 61 .set_video_frame_buffer(rtc::scoped_refptr<webrtc::VideoFrameBuffer>( in OnFrame() 75 rtc::VideoSourceInterface<webrtc::VideoFrame> *VideoTrackSourceImpl::source() { in source()
|
D | video_track_source_impl.h | 27 class VideoTrackSourceImpl : public webrtc::VideoTrackSource { 42 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink) override {} in AddEncodedSink() 44 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink) override {} in RemoveEncodedSink() 46 rtc::VideoSourceInterface<webrtc::VideoFrame>* source() override;
|
D | camera_streamer.h | 34 class CameraStreamer : public rtc::VideoSinkInterface<webrtc::VideoFrame>, 43 void OnFrame(const webrtc::VideoFrame& frame) override; 55 bool VsockSendYUVFrame(const webrtc::I420BufferInterface* frame); 66 rtc::scoped_refptr<webrtc::I420Buffer> scaled_frame_;
|
D | audio_track_source_impl.cpp | 40 void AudioTrackSourceImpl::AddSink(webrtc::AudioTrackSinkInterface* sink) { in AddSink() 45 void AudioTrackSourceImpl::RemoveSink(webrtc::AudioTrackSinkInterface* sink) { in RemoveSink() 71 webrtc::ObserverInterface* /*observer*/) {} in RegisterObserver() 74 webrtc::ObserverInterface* /*observer*/) {} in UnregisterObserver()
|
/device/google/cuttlefish/host/frontend/webrtc/doc/ |
D | interface.dot | 18 webrtc [label = < <B>webrtc</B> >, penwidth = 2] 41 webrtc -> browser [label = < <I>WebRTC</I> >, dir = both] 45 webrtc -> operator_socket [label = < <I>JSON</I> >, dir = both] 46 webrtc -> run_cvd [dir = back] 47 webrtc -> host_bluetooth 49 webrtc -> confirmationui_sign -> secure_env [dir = both] 50 webrtc -> gnss_grpc_server -> gnss_grpc_proxy [dir = both, label = "TCP"] 52 adb_daemon -> socket_vsock_proxy -> webrtc [dir = both] 54 audio_server -> webrtc [dir = both] 57 vmm -> wayland_socket -> webrtc [label = < <I>Wayland</I> >, dir = both] [all …]
|
D | graphics.dot | 11 webrtc [label = < <b>webrtc</b> >, penwidth = 2] 36 webrtc -> browser [dir = both] 39 webrtc -> run_cvd [dir = back] 41 wayland_socket -> webrtc [dir = both, color = "blue", label = < <I>Wayland</I> >]
|
/device/google/cuttlefish/host/frontend/webrtc/html_client/ |
D | Android.bp | 24 sub_dir: "webrtc/assets", 31 sub_dir: "webrtc/assets", 38 sub_dir: "webrtc/assets", 45 sub_dir: "webrtc/assets", 52 sub_dir: "webrtc/assets/js", 59 sub_dir: "webrtc/assets/js", 66 sub_dir: "webrtc/assets/js", 73 sub_dir: "webrtc/assets/js", 80 sub_dir: "webrtc/assets/js", 87 sub_dir: "webrtc/assets/js", [all …]
|
/device/google/cuttlefish/host/frontend/webrtc_operator/ |
D | Android.bp | 60 // TODO(jemoreira): Ideally these files should be in $HOST_OUT/webrtc but I 67 sub_dir: "webrtc/assets", 74 sub_dir: "webrtc/assets", 81 sub_dir: "webrtc/assets/js", 88 sub_dir: "webrtc/assets/js", 95 sub_dir: "webrtc/certs", 102 sub_dir: "webrtc/certs", 109 sub_dir: "webrtc/certs", 116 sub_dir: "webrtc/certs",
|
/device/google/cuttlefish/host/commands/run_cvd/launch/ |
D | streamer.cpp | 258 Command webrtc(WebRtcBinary(), KillSubprocessFallback(stopper)); in Commands() local 260 webrtc.AddParameter("-group_id=", instance_.group_id()); in Commands() 262 webrtc.UnsetFromEnvironment("http_proxy"); in Commands() 263 sockets_.AppendCommandArguments(webrtc); in Commands() 265 webrtc.AddParameter("-switches_fd=", switches_server_); in Commands() 274 webrtc.AddParameter("--command_fd=", webrtc_recorder_.GetClientSocket()); in Commands() 275 webrtc.AddParameter("-kernel_log_events_fd=", kernel_log_events_pipe_); in Commands() 276 webrtc.AddParameter("-client_dir=", in Commands() 282 for (auto& action : LaunchCustomActionServers(webrtc, actions)) { in Commands() 285 commands.emplace_back(std::move(webrtc)); in Commands()
|