ENH: help video play failure

Change-Id: I5f847547877a82d626bffb78488e5f3d20cc56d0
This commit is contained in:
chunmao.guo 2022-09-09 15:05:59 +08:00 committed by Lane.Wei
parent 6dc68c4c9e
commit 70de37d1ae
5 changed files with 54 additions and 9 deletions

View file

@ -38,7 +38,7 @@ void wxMediaCtrl2::Load(wxURI url)
wxExecute("cmd /c start " + url, wxEXEC_HIDE_CONSOLE);
}
});
m_error = 2;
m_error = 100;
wxMediaEvent event(wxEVT_MEDIA_STATECHANGED);
event.SetId(GetId());
event.SetEventObject(this);
@ -56,7 +56,7 @@ void wxMediaCtrl2::Load(wxURI url)
wxMessageBox(_L("Missing BambuSource component registered for media playing! Please re-install BambuStutio or seek after-sales help."), _L("Error"),
wxOK);
});
m_error = clsid.IsEmpty() ? 100 : clsid != L"{233E64FB-2041-4A6C-AFAB-FF9BCF83E7AA}" ? 101 : 102;
m_error = clsid != L"{233E64FB-2041-4A6C-AFAB-FF9BCF83E7AA}" ? 101 : path.empty() ? 102 : 103;
wxMediaEvent event(wxEVT_MEDIA_STATECHANGED);
event.SetId(GetId());
event.SetEventObject(this);