Turning on visualization [#21793]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Turning on visualization [#21793]

Re: Turning on visualization [#21793]

by MiPi » Tue Oct 07, 2025 11:03 am

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?

Re: Turning on visualization

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

Turning on visualization [#21793]

by birwin2 » Thu Oct 02, 2025 2:31 pm

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.

Top