"How to programmatically start/stop Pixel Streaming in UE5 [5.3]

Hello Unreal community,

I’m trying to find a way to start and stop Pixel Streaming programmatically in my project, using either Python, C++, or console commands. I’m using Unreal Engine [Your specific version number].

I’ve enabled the Pixel Streaming plugin in my project, but I’m struggling to control it from code. Here’s what I’ve tried so far:

  1. Tried to access unreal.PixelStreamingStreamerComponent using both Python and C++, but couldn’t find a way to do it.
  2. Enabled -AllowPixelStreamingCommands and attempted to use console commands ‘startStreaming’ and ‘stopStreaming’, but these don’t work.

I’m looking for a way to start and stop streaming without using the editor toolbar.

Could someone please provide the current, correct way to:

  1. Start Pixel Streaming programmatically
  2. Stop Pixel Streaming programmatically
  3. Switch Between Level Editor and Full Editor

If possible, I’d appreciate examples in Python, C++, or even correct console commands if that’s the best approach.

Thank you in advance for any help or guidance!