Getting tracklist through DevTools

To discuss development of addons / skins / customization of MediaMonkey v5 / v2024

Moderators: jiri, drakinite, Addon Administrators

birwin2
Posts: 15
Joined: Sat May 09, 2015 4:47 pm

Getting tracklist through DevTools

Post by birwin2 »

Based on a post back in 2018, I am trying to use Chrome Dev Tools to get data from MM. Submitting the following request through a WebSocket to get the currently playing track works fine:

var request = {id:1,method:'Runtime.evaluate',params:{expression:'app.player.getCurrentTrack()'}}

But when I try to get the current tracklist {expression:'app.player.getTracklist()'}, what I get back is the following:

{"id":1,"result":{"result":{"type":"object","className":"Object","description":"Object","objectId":"1608634423004785985.1.1"}}}

Is is possible to get back a tracklist object that I can process using this method?