View Issue Details

IDProjectCategoryView StatusLast Update
0018000MMW 5Extensions (bundled)public2021-07-27 22:21
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0.1Fixed in Version5.0.1 
Summary0018000: Scripting: Remote controling of MM5
DescriptionCurrently there are limited ways how to remote control MM5 from other applications/addons

- DevTools protocol can be used only with localhost and is rather hacky
- COM objects are not cross-platform
- web app uses serialized JSON to send request to MM5 media server, but currently does not seem to work anymore

Based on discussion with devs we could add another type of request (to our media server) that can be listened by addons to execute JS code per their needs.
Security is up on the addons devs (which code they execute on which http requests)
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?p=482396#p482396
TagsNo tags attached.
Fixed in build2414

Activities

Ludek

2021-06-08 13:55

developer   ~0063811

Last edited: 2021-06-08 14:09

As discussed offline: I'll prepare a sample addon that can receive requests (via our media server) and add it to sampleAddons

Moving target so that this gets into 5.0.1

Ludek

2021-06-09 14:03

developer   ~0063856

Last edited: 2021-06-09 14:17

Implemented and added sample to /sampleScripts/remoteControl/

It demonstrates how to catch POST request to our media server (see IP:Port in Options > Media Sharing)

Currently it accepts only POST requests including MMCustomRequest in the request header and valid JSON as request body

The testing request available at: https://reqbin.com/uw0qc1ma

It can response also with "async result", more in the sample code.

peke

2021-07-27 22:21

developer   ~0064309

Closing, sample scripts works as designed and user using this approach confirms implementation.