View Issue Details

IDProjectCategoryView StatusLast Update
0021793MMW 5Extensions frameworkpublic2025-10-07 16:20
Reporterpeke Assigned To 
PriorityurgentSeverityfeatureReproducibilityN/A
Status resolvedResolutionno change required 
Target Version2024.2 
Summary0021793: Visualization API control
DescriptionTurn/Control Visualization from API

Currently app.player.visualization.active = true do not activate Visualization

NOTE: There is no way to Turn Full window/screen visualization from API
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?t=108600
TagsNo tags attached.
Fixed in build

Activities

Ludek

2025-10-07 13:06

developer   ~0079747

I see that visualization menu has changed in 2026 (against 2024.2),
assigning to Michal to look into it..
image.png (30,227 bytes)   
image.png (30,227 bytes)   

Ludek

2025-10-07 13:32

developer   ~0079749

Probably something like
app.player.visualization['Milkshake'].active = true
should work?

michal

2025-10-07 16:20

developer   ~0079754

To switch visualization on/off, they should use this (the same command as in menu):
window.actions.view.visualization.execute();

To change mode of visualization or video frame, they can use:

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
}

To work with existing visualizations, they can fetch array of all existing by:
let visItems = window.uitools.getVisMenuItems();
Every item contains property "title", containing name of the visualization and function "execute()", which switches to this visualization.

So I think everything is doable with current sources. Note, that from version 2026 calling execute() function of some visualization also turns visualization on. It was changed with issue 0020103.