Getting tracklist through DevTools

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

版主: jiri, drakinite, Addon Administrators

回复
birwin2
帖子: 20
注册时间: 周六 5月 09, 2015 4:47 pm

Getting tracklist through DevTools

帖子 由 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?
回复