HowTo?: disable Stop/Start in "Playing"

To discuss development of addons / skins / customization of MediaMonkey.

Moderators: jiri, drakinite, Addon Administrators

Timo_Beil
Posts: 503
Joined: Thu Sep 20, 2007 1:00 pm
Location: Germany, Northern Heath

HowTo?: disable Stop/Start in "Playing"

Post by Timo_Beil »

If "Playing" is called in the main panel, a single click anywhere in the window is sufficient to stop/start the playback. (Except in the list view)
This leads to surprising interruptions (especially if I'm fuzzing arround with a trackpad).
Is there a way in the skin to turn off this function?

[REQ]: Or even more ingenious: How about a mouse click triggered player-control that pops up similar to the window control in the upper right corner of "Playing"? A Player replacement for the fullscreen mode.
MM 5.0.4.2659-port-DE, Win 11 pro, I7-6700, 16GB RAM, DB & Media>TrueNAS
drakinite
Posts: 849
Joined: Tue May 12, 2020 10:06 am
Contact:

Re: HowTo?: disable Stop/Start in "Playing"

Post by drakinite »

The play/pause on click functionality is defined in controls/backgroundImage.js. It listens for a click on its parent element and then runs the play/pause action.

Try adding this code to controls/backgroundImage_add.js in an addon:

Code: Select all

BackgroundImage.prototype.override({
    initialize: function($super, parentel, params) {
        $super(parentel, params);
        app.unlisten(this.container, 'click');
    }
});
References:
- General info on how to make an addon: https://www.mediamonkey.com/wiki/Gettin ... iaMonkey_5
- ClassName.prototype.override: https://www.mediamonkey.com/wiki/Import ... )#Override
Image
Student electrical-computer engineer, web programmer, part-time MediaMonkey developer, full-time MediaMonkey enthusiast
Post Reply