Printer video feed - anyone knows Agora?

I tried to figure out to get the camera feed in like just a browser tab or VLC.
But I had to consult with Wireshark to realise that Bambu even made this part very ‘secure’…
Obviously you have to have the right credentials to get anywhere on the printer…
A HD cam but the entire P1 runs through a tiny and not so powerful ESP…
My fault was to assume Bambu would have the easy way out.
IP cam on the other IP the printer keeps using in my network.
The other one I can’t really work ends with 245 - a rather odd one considering how it is recommended to limit your router’s IP range to what you need…
Then I worked out those always same sized packets going through wireshark whenever I activate the cam in Studio…
Nicely matching the low frame rate of the feed and no surprise originating in the stream with sort of an AVI header - sort of…
It is bad enough that Studio abuses the backbone of Edge and if not installed or deactivated just ‘fixes’ this.
But on top of all going through and Windows libraries they just had to use Agora for the video feed…
Not just to have it really easy with the cloud but as the default, even in LAN only mode.
Studio comes with required libraries but of course with no way to access or use them outside Studio.
And well, I am getting old so I really struggle to find a working, standalone player for Windows or least Android that is able to use certificates and security tokens, not even one to get into stream requiring a login :frowning:

I spent a long time in Wireshark trying to find those exchanged certificates and tokens.
You probably aware that everything Bambu relies on those and encrypting even the most unhackable things…
So once I finally found the public keys and even some private ones, plus some tokens it was time for a well earned break.
Old men like me get tired quickly, especially when staring go through never ending amounts of logged events and text.
But then again, my tea was still hot after those 5 minutes…

How hard can it be to get this low quality video feed without having to venture into C++ or such to pick the stream, remove the unwanted junk from the header and to put those single images into a local video feed ???
Instead of getting a nicely secured and encrypted video fed I would rather much have a higher frame rate and simple, password protected IP access…
Oh well, one can always keep dreaming about a better tomorrow, or next week, month,…

On the X1 series, you already get a RTSPS-Stream when enabled on the display of the printer. You can use ffmpeg for example to connect to it using your credentials:
ffplay -hide_banner rtsps://bblp:ACCESS_CODE@PRINTER_IP:322/streaming/live/1

VLC can not directly access a RTSPS stream, so the quickest way around it, is to use a converter from RTSPS to RTSP or other formats. For this, go2rtc on GitHub works very reliable:
→ GitHub - AlexxIT/go2rtc: Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.

For the P1 series, you can indeed catch the camera images - or stream if you really want to call it that - and display it in the webbrowser. It’s very slow a bitstream of every image. Fortunatley, someone did create exactly that called BambuP1Streamer on GitHub:
→ GitHub - slynn1324/BambuP1Streamer: mjpeg stream access for Bambu P1 printers

While investigating the MQTT-Protocol of the X1-series, i also stumbled on "agora_service": "disable" which, as expected, is nowhere documented either by BambuLab or the Internet.

Just posting to keep in the loop