View Issue Details

IDProjectCategoryView StatusLast Update
0017238MMW 5Playbackpublic2020-12-21 17:20
Reporterdrakinite Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version5.0 
Summary0017238: Regression - Window reload now stops music playback
DescriptionPrevious to build 2286, when window.doReload() is called, music playback continues in the background while the window reloads, I believe this is an important feature to keep. In both debug and regular builds of 2286, however, music playback stops during the reload process.
Steps To ReproduceEasiest with refreshSkinShortcut:
- start music playback
- click le button
TagsNo tags attached.
Fixed in build

Relationships

related to 0017168 closedpetr Localization: freeze and loss of language options upon selecting a previously installed language 

Activities

Ludek

2020-12-16 22:33

developer   ~0060841

Last edited: 2020-12-16 22:41

Yes, this was intended change technically described in ~60787

The reason is that currently most of the MM processing is somehow dependent on JS and because all JS/HTML/CSS needs to be reloaded on skin change (or addon install/unistall) then it is safer to always restart MM as whole after such a change.

But maybe for the refreshSkinShortcut addon (I guess it is mainly for purpose of skin developing?) we could leave the old "soft reload" functionality ?

On the other hand for the MM skin developers it is probably faster to run a batch file that just kills and restarts MM.

drakinite

2020-12-16 22:42

developer   ~0060842

Last edited: 2020-12-16 22:44

Okay, cool. Big technical issue is more important than minor user convenience. :P

- Saw your edit: That would be nice developers. If it's not too difficult to add a new "soft" reload function, e.g. window.doSoftReload() ?
I imagine plenty of skin developers would be working on and testing their skin while listening to music on MM itself.

Ludek

2020-12-16 22:49

developer   ~0060843

Last edited: 2020-12-16 22:57

BTW: There is already softReload parameter in the window.doReload that re-loads just the LESS/CSS.
So maybe the refreshSkinShortcut addon could just reload the less/css which is faster and useful for skin developers ?

EDIT:
i.e. change just to
window.doReload(false, true);
where the second parametr is the soft reload of less/css only

Ludek

2020-12-16 23:01

developer   ~0060844

Added the change to SVN (revision 37092)

drakinite

2020-12-16 23:32

developer   ~0060849

Oh, that's very nice! I'll update refreshSkinShortcut to have an option between full reload and just LESS reload, because some developers (i.e. regular addon devs) will definitely want to reload the JS and HTML.

drakinite

2020-12-17 02:41

developer   ~0060850

Getting away from the original topic here, but refreshSkinShortcut is updated with those additions.

peke

2020-12-21 17:20

developer   ~0060994

Verified 2288

Unable to reproduce.