JavaScript

Testing scripts

New in version 4.0.3.

In order to test functionality, the JavaScript engine can be called manually.

Executing JavaScript code

POST /javascript/test
Accepts:
  • application/javascript , text/plain, text/javascript – The JavaScript code
Produces:
  • application/json – The object returned by the code, in JSON format

JavaScript sessions

Retrieving JavaScript sessions

GET /javascript/session
Produces:
  • text/plain – A textual list of the current JavaScript sessions in Vidispine, their current status, and which port they listen to

Note

Multiple JavaScript debug sessions cannot share the same port. If several JavaScript sessions are started simultaneously, each is allocate the next free port. The port number can be found using the request above.