View Issue Details

IDProjectCategoryView StatusLast Update
0019417MMW 5Extensions frameworkpublic2022-10-03 11:32
Reporterpeke Assigned To 
PriorityurgentSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Target Version5.1 
Summary0019417: Play to available devices not available for Scripters
DescriptionPlay to devices not available for Script Developers.

It could be very useful for some scripts like MonkeyMote to have remote playback control.
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?p=501298#p501298
TagsNo tags attached.
Fixed in build

Activities

Ludek

2022-10-03 11:29

developer   ~0069619

Last edited: 2022-10-03 11:32

The API is already there.

For the list of remote players: https://www.mediamonkey.com/docs/api/classes/Sharing.html#method_getAvailablePlayers
For getting the active player: https://www.mediamonkey.com/docs/api/classes/Sharing.html#method_getActivePlayer
For setting the active player: https://www.mediamonkey.com/docs/api/classes/Sharing.html#method_setActivePlayerUUID

For the code example see e.g. generateChoosePlayerSubmenu in actions.js (or inspect it in DevTools)
For calling JS code from external applications see the runJSCode example at https://www.mediamonkey.com/wiki/Controlling_MM5_from_External_Applications