21 namespace visualization {
22 namespace webrtc_server {
42 static std::shared_ptr<WebRTCWindowSystem>
GetInstance();
94 const std::string& class_name,
95 const std::function<std::string(
const std::string&)>
callback);
98 void OnFrame(
const std::string& window_uid,
99 const std::shared_ptr<core::Tensor>& im);
123 std::string
CallHttpAPI(
const std::string& entry_point,
124 const std::string& query_string =
"",
125 const std::string&
data =
"")
const;
142 std::unique_ptr<Impl> impl_;
Window * o3d_window
Definition: BitmapWindowSystem.cpp:29
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition: FilamentRenderer.cpp:182
Definition: BitmapWindowSystem.h:28
void * OSWindow
Definition: WindowSystem.h:29
WebRTCWindowSystem is a BitmapWindowSystem with a WebRTC server that sends video frames to remote cli...
Definition: WebRTCWindowSystem.h:40
virtual ~WebRTCWindowSystem()
Definition: WebRTCWindowSystem.cpp:199
void DestroyWindow(OSWindow w) override
Definition: WebRTCWindowSystem.cpp:220
void StartWebRTCServer()
Start WebRTC server in a background thread.
Definition: WebRTCWindowSystem.cpp:257
OSWindow CreateOSWindow(gui::Window *o3d_window, int width, int height, const char *title, int flags) override
Definition: WebRTCWindowSystem.cpp:204
void EnableWebRTC()
Definition: WebRTCWindowSystem.cpp:485
static std::shared_ptr< WebRTCWindowSystem > GetInstance()
Definition: WebRTCWindowSystem.cpp:111
void DisableHttpHandshake()
Definition: WebRTCWindowSystem.cpp:490
std::vector< std::string > GetWindowUIDs() const
List available windows.
Definition: WebRTCWindowSystem.cpp:228
std::string CallHttpAPI(const std::string &entry_point, const std::string &query_string="", const std::string &data="") const
Call PeerConnectionManager's web request API.
Definition: WebRTCWindowSystem.cpp:419
void SendInitFrames(const std::string &window_uid)
Definition: WebRTCWindowSystem.cpp:405
void OnFrame(const std::string &window_uid, const std::shared_ptr< core::Tensor > &im)
Server -> client frame.
Definition: WebRTCWindowSystem.cpp:400
std::string OnDataChannelMessage(const std::string &message)
Definition: WebRTCWindowSystem.cpp:355
void RegisterDataChannelMessageCallback(const std::string &class_name, const std::function< std::string(const std::string &)> callback)
Definition: WebRTCWindowSystem.cpp:391
void CloseWindowConnections(const std::string &window_uid)
Close all WebRTC connections that correspond to a Window.
Definition: WebRTCWindowSystem.cpp:495
OSWindow GetOSWindowByUID(const std::string &uid) const
Definition: WebRTCWindowSystem.cpp:245
std::string GetWindowUID(OSWindow w) const
Definition: WebRTCWindowSystem.cpp:236
const char const char value recording_handle imu_sample recording_handle uint8_t data
Definition: K4aPlugin.cpp:269
Definition: PinholeCameraIntrinsic.cpp:16
Definition: WebRTCWindowSystem.cpp:87