mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
NEW: management camera video stream in device panel
Change-Id: I39634af900071cc5c01a88100457880a513e416f
This commit is contained in:
parent
1068baf10e
commit
4d4fcc1780
24 changed files with 334 additions and 56 deletions
|
@ -35,6 +35,10 @@ public:
|
|||
|
||||
void SetMachineObject(MachineObject * obj);
|
||||
|
||||
bool IsStreaming() const;
|
||||
|
||||
void ToggleStream();
|
||||
|
||||
protected:
|
||||
void onStateChanged(wxMediaEvent & event);
|
||||
|
||||
|
@ -49,6 +53,8 @@ protected:
|
|||
private:
|
||||
void media_proc();
|
||||
|
||||
bool get_stream_url(std::string * url = nullptr);
|
||||
|
||||
private:
|
||||
static constexpr wxMediaState MEDIASTATE_IDLE = (wxMediaState) 3;
|
||||
static constexpr wxMediaState MEDIASTATE_INITIALIZING = (wxMediaState) 4;
|
||||
|
@ -71,11 +77,12 @@ private:
|
|||
boost::condition_variable m_cond;
|
||||
boost::thread m_thread;
|
||||
|
||||
bool m_streaming = false;
|
||||
int m_failed_retry = 0;
|
||||
int m_failed_code = 0;
|
||||
wxDateTime m_next_retry;
|
||||
|
||||
::Button * m_button_play;
|
||||
::Button *m_button_play;
|
||||
::Label * m_label_status;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue