View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0018000 | MMW 5 | Extensions (bundled) | public | 2021-06-08 10:17 | 2021-07-27 22:21 |
Reporter | Ludek | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 5.0 | ||||
Target Version | 5.0.1 | Fixed in Version | 5.0.1 | ||
Summary | 0018000: Scripting: Remote controling of MM5 | ||||
Description | Currently 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 Information | https://www.mediamonkey.com/forum/viewtopic.php?p=482396#p482396 | ||||
Tags | No tags attached. | ||||
Fixed in build | 2414 | ||||
|
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 |
|
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. |
|
Closing, sample scripts works as designed and user using this approach confirms implementation. |