Cast Device Cleanup [#20191]

Get answers about the current version of MediaMonkey for Windows

Moderatore: Gurus

MyVikes
Messaggi: 98
Iscritto il: dom lug 02, 2017 1:20 am

Cast Device Cleanup [#20191]

Messaggio da MyVikes »

I've reset a few of my legacy Chromecast devices and after doing so i'm finding remnants of this in there initial statues show up in MM5. when i do

Codice: Seleziona tutto

var availablePlayersList = app.sharing.getAvailablePlayers();

console.log("availablePlayersList:", availablePlayersList);
for example see results below with "Chromecast4330":

{
"_persistentID": "SharedList",
"objectType": "sharedlist",
"autoSortString": "",
"data": [
{
"udn": "",
"name": "",
"last_seen": "",
"volume": 1,
"ip": "",
"protocol": ""
},
.......
{
"udn": "Android-2",
"name": "Chromecast4330",
"last_seen": "2023-08-07 13:29:16",
"volume": 1,
"ip": "http://:6466/",
"protocol": "google.cast"
},
]
}

I think these "might" go away eventually but MM5 restarts, PC reboots, etc. isn't doing the trick and i'm wondering there is a trick to forcing a refresh of cast devices that would make them go away immediately.

Thanks!
MyVikes
Messaggi: 98
Iscritto il: dom lug 02, 2017 1:20 am

Re: Cast Device Cleanup

Messaggio da MyVikes »

So, i did a bit of poking around and found a file in the "C:\Users\????\AppData\Roaming\MediaMonkey5" called "persistent.json" where ???? is your user account that is as you might suspect in json format and by the name stores some MM5 values outside of the DB. I found the suspect cast devices there in a section labeled "LAST_REMOTE_PLAYERS"" and removed them after stopping MM5. I then restarted MM5 and they were gone.

But as i mentioned i do think they get cleared out eventually as at least one or two had gone away prior to my trying the above.

This is of course, try at your own risk and i did do a backup of the file before i did this but all seems ok.

Thanks!
jswamp09
Messaggi: 1
Iscritto il: sab ott 07, 2017 11:35 am

Re: Cast Device Cleanup

Messaggio da jswamp09 »

Similarly, I reset my Google mini speaker. Now MM5 doesn't see it. Rather, it sees the old entry in the Media Sharing under options. I tried editing the persistent.json and removed the entry. No change.

I noticed that the last seen date/time in the Media Sharing under options reads 7/25/2023 (5:49:25 PM). The last seen date in the json file entry reads 2023-08-09 15:48:20. This leads me to think that the data is stored in more than one location.
Peke
Messaggi: 18778
Iscritto il: mar giu 10, 2003 7:21 pm

Re: Cast Device Cleanup

Messaggio da Peke »

Hi,
This should be fixed in 2812, but anyway I added https://www.ventismedia.com/mantis/view.php?id=20191 to review if MM native function is needed and not manually editing persistent.json.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Immagine
Immagine
Immagine
How to attach PICTURE/SCREENSHOTS to forum posts
pip_pill
Messaggi: 104
Iscritto il: dom feb 26, 2017 3:55 pm

Re: Cast Device Cleanup [#20191]

Messaggio da pip_pill »

With the wonderful Google AKA Alphabet, having an outage of the Chromecast v2 and Chromecast Audio, 5 -March-2025 ongoing.... effecting all users - including myself having to reset their Chromecast Audio devices.
Some of my PCs running MM5 are showing as far as I can tell a "real list" of "cast to devices"
However, some of my PC running MM5 have corrupted "cast to devices" ie old names (which work for for casting some reason) and bad failed setup devices....https://drive.google.com/file/d/1mjI2jk ... drive_link - White crosses!
What is the best way to refresh the list or edit the list without having finalised ID 0020191 Project MMW5?
Rispondi