Cast Device Cleanup [#20191]

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: Cast Device Cleanup [#20191]

Re: Cast Device Cleanup [#20191]

by pip_pill » Fri Mar 21, 2025 1:18 pm

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?

Re: Cast Device Cleanup

by Peke » Sat Aug 12, 2023 6:33 am

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.

Re: Cast Device Cleanup

by jswamp09 » Thu Aug 10, 2023 6:03 pm

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.

Re: Cast Device Cleanup

by MyVikes » Thu Aug 10, 2023 3:37 am

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!

Cast Device Cleanup [#20191]

by MyVikes » Wed Aug 09, 2023 1:20 am

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

Code: Select all

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!

Top