Turning on visualization [#21793]

To discuss development of addons / skins / customization of MediaMonkey v5 / v2024

Moderators: jiri, drakinite, Addon Administrators

birwin2
Posts: 17
Joined: Sat May 09, 2015 4:47 pm

Turning on visualization [#21793]

Post 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.
Peke
Posts: 18378
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Turning on visualization

Post by Peke »

Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
MiPi
Posts: 906
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: Turning on visualization [#21793]

Post 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?
Post Reply