View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019287 | MMW 5 | Extensions framework | public | 2022-07-25 22:52 | 2022-09-13 21:41 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 5.0.4 | ||||
Summary | 0019287: PlaylistEntries removal methods doesn't update the player info | ||||
Description | PlaylistEntries removal methods doesn't update the player info (playlistPos stays the same and the color of the playing file doesn't indicate that it is playing anymore), although the file is removed from the Playing list. If you stop and play again, the playing starts from the first track in the list, not from the previously played track as is the case when not removing files with the mentioned methods. If you have selected several tracks in the Playing list and if you remove any one of them using these methods, the Playing and Selected info in the status bar is not updated, even if you remove all tracks. app.player.removeSelectedTracksAsync() doesn't have these problems, but it complicates things because I need to store currectly slected state of the playlist entries, then to select the track that I want to remove with setSelected(i, true), then execute the mentioned method and finally to restore back the selected state of the remaining tracks in the Playing list. | ||||
Steps To Reproduce | 1. put several tracks into Playing list; 2. open DevTools / Console; 3. start playing the last track; 4. execute following lines in DevTools: a) app.player.playlistPos -> correct b) var oPlayingList = app.player.getSongList() c) await oPlayingList.modifyAsync(function () {oPlayingList.delete(0)}) d) app.player.playlistPos -> incorrectly shows the same value as the previous playlistPos line, although the first file is removed from the Playing list. Instead of c) you could try any of these: await oPlayingList.modifyAsync(function () {oPlayingList.remove(oPlayingList.getValue(0))}) await oPlayingList.modifyAsync(async function () {await oPlayingList.removeAsync(oPlayingList.getValue(0))}) notifyChanged doesn't help either: await oPlayingList.modifyAsync(async function () {await oPlayingList.removeAsync(oPlayingList.getValue(0)).then(function () {oPlayingList.notifyChanged()})}) await oPlayingList.modifyAsync(async function () {await oPlayingList.removeAsync(oPlayingList.getValue(0))}).then(function () {oPlayingList.notifyChanged()}) And uitools.refreshView() doesn't help either. | ||||
Tags | No tags attached. | ||||
Fixed in build | 2661 | ||||