Turning on visualization [#21793]

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

Moderadores: jiri, drakinite, Addon Administrators

birwin2
Mensagens: 20
Registado: sábado mai 09, 2015 4:47 pm

Turning on visualization [#21793]

Mensagem por 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
Mensagens: 18776
Registado: terça jun 10, 2003 7:21 pm

Re: Turning on visualization

Mensagem por Peke »

Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Imagem
Imagem
Imagem
How to attach PICTURE/SCREENSHOTS to forum posts
MiPi
Mensagens: 951
Registado: terça ago 18, 2009 2:56 pm

Re: Turning on visualization [#21793]

Mensagem por MiPi »

To switch visualization on/off, you can call:

Código: Selecionar todos

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

Código: Selecionar todos

            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?
Responder