HowTo?: disable Stop/Start in "Playing"

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: HowTo?: disable Stop/Start in "Playing"

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

by drakinite » Sat Jun 25, 2022 5:49 pm

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

HowTo?: disable Stop/Start in "Playing"

by Timo_Beil » Fri Jun 24, 2022 2:52 am

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.

Top