Commit Graph

33 Commits

Author SHA1 Message Date
Bastien Nocera 73908d38d8 slic3r: Fix missing includes in wxMediaCtrl2
src/slic3r/GUI/wxMediaCtrl2.cpp: In lambda function:
src/slic3r/GUI/wxMediaCtrl2.cpp:170:13: error: ‘wxMessageBox’ was not declared in this scope; did you mean ‘wxInfoMessageBox’?
  170 |             wxMessageBox(_L("Your system is missing H.264 codecs for GStreamer, which are required to play video.  (Try installing the gstreamer1.0-plugins-bad or gstreamer1.0-libav packages, then restart Bambu Studio?)"), _L("Error"), wxOK);
      |             ^~~~~~~~~~~~
      |             wxInfoMessageBox
src/slic3r/GUI/wxMediaCtrl2.cpp: In member function ‘void wxMediaCtrl2::Load(wxURI)’:
src/slic3r/GUI/wxMediaCtrl2.cpp:179:5: error: ‘wxLog’ has not been declared
  179 |     wxLog::EnableLogging(false);
      |     ^~~~~
2024-10-28 08:33:48 +08:00
chunmao.guo 94d91be60b NEW: reimpl wxMediaCtrl from ffmpeg
Jira: none
Change-Id: I46a47118a7649b2a50fcce8911e2888342ef25de
(cherry picked from commit d6c7f08769c8cfdbbf0e80ad280c9b3408a3c27d)
2024-10-15 15:50:26 +08:00
chunmao.guo 2d57111d0b FIX: PrinterFileSystem::FileRemoved
Change-Id: I891aaa8d58ff379dc1ebd8581064865a33388f74
2024-05-13 09:20:46 +08:00
chunmao.guo fdcd6085d2 ENH: stop liveview track record
Change-Id: Id4f236b239740bd919f2aa2f2892c1e63ce233bd
Jira: STUDIO-6131
2024-03-25 15:29:19 +08:00
chunmao.guo 30dc8b3117 ENH: save video ctrl size to reduce layout change
Change-Id: I470f29d7f029d304c9badeeb8f94bed281080b29
Jira: STUDIO-6141
2024-03-25 15:29:19 +08:00
chunmao.guo 3b440aed25 FIX: restore liveview log
Change-Id: I4e9d4d710cf4ed056a171d88e5ef0392eaf0a47d
Jira: none
2024-03-25 15:29:19 +08:00
Stone Li ee39610e27 ENH: modify some logs level
JIRA: STUDIO-5958

Change-Id: I5a8592dfb8ffa9a81952535cb30944f867aa0e22
Signed-off-by: Stone Li <stone.li@bambulab.com>
2024-03-25 10:42:29 +08:00
chunmao.guo e6fa314948 FIX: register bambusource dll path
Change-Id: Ic99750f667c58b3e531909c08d74c2b17e52d7ce
Github: 3171
2024-03-25 10:42:29 +08:00
chunmao.guo 930109877d ENH: show liveview stat
Change-Id: I70d1f458aa2ed379ad7fe07dee76fbe035316420
Jira: none
2024-03-25 10:42:29 +08:00
chunmao.guo aced77886f FIX: register source without runas
Change-Id: I7307941878471ab0dc195e467a048ad31a8a7656
Jira: STUDIO-4854
(cherry picked from commit 2a9e6f74f5b2d0ffb12ead2a072959bc075dc455)
2023-11-09 10:09:10 +08:00
chunmao.guo fd25b604a6 FIX: register source in HKEY_CURRENT_USER
Change-Id: I7e9cd0b4a85b5c6bfc68c93e7037c70e98119a2e
Jira: STUDIO-4854
(cherry picked from commit 9977c3702ba08287a9623bd1b43a42a953bcdda7)
2023-11-09 10:09:10 +08:00
chunmao.guo 87e8c64cb0 FIX: [STUDIO-3892] warn bambu source dll from another install
Change-Id: I23ae1b93d99035135786a6f40321475ea6c1c373
2023-11-01 09:11:19 +08:00
chunmao.guo 282c785304 FIX: [STUDIO-3551] pass worker thread id to DirectShow
Change-Id: If55e39768ec1e43103c59168b139bb115db6b092
2023-07-31 14:29:15 +08:00
chunmao.guo 02f2e51c2e FIX: pass error from gstreamer to wxMediaCtrl
Change-Id: If275d0ebeb7089f67ad366811dc48009b86af564
2023-07-13 10:35:05 +08:00
chunmao.guo b50838b155 FIX: [STUDIO-3309] MediaCtrl: Stop before Load({})
Change-Id: Id7c96fdf7fd717725e94b9ae28b261963b8f64e7
2023-07-07 17:52:43 +08:00
chunmao.guo e44aa0e31c FIX: [STUDIO-2431] unset audio sink from gst playbin
Change-Id: I4e3e1656842167b039d11003e75b7f4b6048b178
2023-07-07 17:29:08 +08:00
chunmao.guo c0bcb2270a FIX: [STUDIO-2557] use load() to stop media play on windows
Change-Id: I0d2d45569ef64a5a212ea04fe926a3a25ce7b50d
2023-04-17 15:39:02 +08:00
chunmao.guo 9f3a89320b FIX: [STUDIO-1033] rm webview script handler on webview destory
Change-Id: If1465ba6bf997bf17b8a33bc33d0f20d34fcbdc7
2023-04-17 15:39:02 +08:00
chunmao.guo a401c0fa2e FIX: [STUDIO-2340] [STUDIO-2297] handle linux gstreamer error
Change-Id: Iadc6dcb9d7a9f2c5d1ce9cf979bbbfbd0f805d19
2023-04-17 15:39:02 +08:00
chunmao.guo bea48a08d6 FIX: not play liveview when device is busy downloading
Change-Id: I48dc1c28fc78d69bfd37d1b531aa7daf5e6e4cbd
2023-02-01 16:24:44 +08:00
Joshua Wise 730aa890c3 wxMediaCtrl2: provide a better error message if the system does not have h.264 codecs installed 2023-01-12 14:56:04 +08:00
Joshua Wise 43a7f88c6c Add support for Bambu Lab X1 series live video stream on Linux.
wxWidgets on Linux uses GStreamer as its back-end for wxMediaCtrl, which
doesn't have a bambu: URI handler.  On Windows, this is handled by a Windows
Media subsystem plugin, and on Mac, this is handled with a BambuPlayer
class.  Luckily, the libBambuSource.so binary that is distributed with the
network plugin package already contains support for receiving h.264 data
from the network, and the API is the same as is used by the tiny
bambusource.exe binary on Windows; we glue this into a GStreamer source
plugin that registers a URI handler for bambu:.

To make this work, we make a few additional changes elsewhere.  GStreamer
seems to have trouble rendering an Xv overlay onto a 32bpp X visual, but
Bambu Slicer seems to request a 32bpp visual for some background
transparency in the Notebook; it doesn't seem to use it in an interesting
way on Linux, though, so we remove that request for transparency to allow
Bambu Studio to render to a 24bpp visual.  The media controller
infrastructure also makes a few assumptions about when sizing information
can be queried from a wxMediaCtrl backend that do not hold true on Linux; we
either fix those assumptions, or fake them out, as needed.  We also make a
few changes needed to successfully compile C.

This has only been tested with the GStreamer backend for wxWidgets --
notably, not the GStreamer-play backend (these are, astonishingly, two
different things!).  If you find that this seems not to work, consider
*un*installing the libgstreamer-plugins-bad1.0-dev package and then
rebuilding wxWidgets.
2023-01-12 14:56:04 +08:00
chunmao.guo f6ff0f6131 FIX: re-register BambuSource when maybe installed under administrator
Change-Id: Iff4c4dc9a581de33e08681b7033c1f29ebacb6a4
2022-12-15 04:38:15 -05:00
chunmao.guo e44e1c1f19 FIX: video error message when lan ip missing
Change-Id: I5adaa89e2631a4e7853d806a53f41da927cc0ea7
2022-12-15 04:33:48 -05:00
chunmao.guo 48083f7c0c FIX: use shellex to open file, avoid cmd window
Change-Id: I6ae868381003c85a319e9c3bad37b0bffc3dbdd7
2022-10-20 19:34:37 +08:00
chunmao.guo 0dd3589a21 ENH: re-register BambuSource with bat script
Change-Id: I67f014bc8de55597134a9974557e622082daaf97
2022-10-20 19:34:37 +08:00
chunmao.guo 70de37d1ae ENH: help video play failure
Change-Id: I5f847547877a82d626bffb78488e5f3d20cc56d0
2022-09-29 11:16:43 +08:00
chunmao.guo b2b2bc2a9c FIX: not keep restarting video on local error
Change-Id: I2f79208326f92931bec108a4609088788ceca998
2022-09-08 21:49:36 +08:00
chunmao.guo d4ddd8f470 ENH: check BambuSource registered
Change-Id: Ia98e1630115811e061bc320fbb25b74b8f933dfb
2022-08-26 09:25:59 +08:00
chunmao.guo efd20d0a84 FIX: direct jump to enable 'Windows Media Player'
Change-Id: If5eeb82162293cd20583f65aae1fa75f70aac25d
2022-08-26 09:25:59 +08:00
chunmao.guo f908ccd7b3 FIX: modify NvOptimusEnablement earlier in contructor of wxMediaCtrl2
Change-Id: I0562c393245726887c2d507f41269d09cf7a8800
2022-08-05 15:28:01 +08:00
lane.wei e9e4d75877 Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos
2. add the bambu networking plugin install logic
3. auto compute the wipe volume when filament change
4. add the logic of wiping into support
5. refine the GUI layout and icons, improve the gui apperance in lots of
   small places
6. serveral improve to support
7. support AMS auto-mapping
8. disable lots of unstable features: such as params table, media file download, HMS
9. fix serveral kinds of bugs
10. update the document of building
11. ...
2022-07-22 20:35:34 +08:00
lane.wei 1555904bef Add the full source of BambuStudio
using version 1.0.10
2022-07-15 23:42:08 +08:00