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.
Turning on visualization [#21793]
Moderators: jiri, drakinite, Addon Administrators
Re: Turning on visualization
Hi,
Good catch. Added as https://www.ventismedia.com/mantis/view.php?id=21793
Good catch. Added as https://www.ventismedia.com/mantis/view.php?id=21793
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying



How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying



How to attach PICTURE/SCREENSHOTS to forum posts
Re: Turning on visualization [#21793]
To switch visualization on/off, you can call:
It should be accessible in the main window. To change mode of the visualization, you can use:
Did it solve what you wanted?
Code: Select all
window.actions.view.visualization.execute();
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
}