FIX: local liveview start play timer

Change-Id: I171a6ce87e4df4cf8420f330162bd1ed209da755
Jira: none
This commit is contained in:
chunmao.guo 2024-09-13 09:28:08 +08:00 committed by Lane.Wei
parent 23581ce0d3
commit 4a8709cd03
1 changed files with 2 additions and 1 deletions

View File

@ -301,6 +301,8 @@ void MediaPlayCtrl::Play()
return;
}
m_play_timer = std::chrono::system_clock::now();
NetworkAgent *agent = wxGetApp().getAgent();
std::string agent_version = agent ? agent->get_version() : "";
if (m_lan_proto > MachineObject::LVL_Disable && (m_lan_mode || !m_remote_proto) && !m_disable_lan && !m_lan_ip.empty()) {
@ -353,7 +355,6 @@ void MediaPlayCtrl::Play()
m_label_stat->SetLabel({});
SetStatus(_L("Initializing..."));
m_play_timer = std::chrono::system_clock::now();
if (agent) {
std::string protocols[] = {"", "\"tutk\"", "\"agora\"", "\"tutk\",\"agora\""};