View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021793 | MMW 5 | Extensions framework | public | 2025-10-02 20:57 | 2025-10-07 16:20 |
Reporter | peke | Assigned To | |||
Priority | urgent | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | no change required | ||
Target Version | 2024.2 | ||||
Summary | 0021793: Visualization API control | ||||
Description | Turn/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 Information | https://www.mediamonkey.com/forum/viewtopic.php?t=108600 | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
|
I see that visualization menu has changed in 2026 (against 2024.2), assigning to Michal to look into it.. |
|
Probably something like app.player.visualization['Milkshake'].active = true should work? |
|
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. |