Page 1 of 1

Turning on visualization [#21793]

Posted: Thu Oct 02, 2025 2:31 pm
by birwin2
I am trying to turn on visualization from an external app I'm developing. When I send the following,

app.player.visualization.active = true

the only thing that happens is the Visualization checkbox gets checked, but nothing else. I want to have the visualization start up in full screen. Can anyone provide some guidance on this?

As always, thanks in advance.

Re: Turning on visualization

Posted: Thu Oct 02, 2025 3:58 pm
by Peke

Re: Turning on visualization [#21793]

Posted: Tue Oct 07, 2025 11:03 am
by MiPi
To switch visualization on/off, you can call:

Code: Select all

window.actions.view.visualization.execute();
It should be accessible in the main window. To change mode of the visualization, you can use:

Code: Select all

            window.prepareWindowModeSwitching(); // it only needs to be called once
            let switcher = qid('videoSwitch');
            if (switcher) {
                switcher.controlClass.switchToMode(window.videoModes.C_FULLSCREEN); // or C_WINDOWED or C_FULLWINDOW
            }
Did it solve what you wanted?