Interactivity via Ethernet

From SpinetiX Support Wiki

Jump to: navigation, search

This page is about interactivity with external devices connected via the Ethernet port to the HMP350, HMP200, HMP130, and HMP100 devices.

Introduction

Example of network interactivity

Interactivity via Ethernet refers to the HMP quality of reacting in a user-defined manner (i.e. reactive action), following the input received from external devices via Ethernet. This means that the HMP can be "controlled" over the network from:

... and so on.

Configuration

Shared Variables mechanism

The Shared Variables mechanism allows any device / application to communicate with the HMP through simple HTTP requests or TCP socket connections. See how to update a Shared Variable.

To enable interactivity via Ethernet on the HMP, you need to make sure that the SV Network API is enabled on the device.

Web Storage REST API

The Web Storage REST API allows manipulating the localStorage permanent data of the player from external clients through HTTP(S) calls.

The REST API is deactivated by default - to use it, open Advanced Applications > Webstorage API page in HMP Control Center, activate "Enable security token access to the Webstorage API" option and click the "Apply" button.

How to create interactive content

You can easily create interactive content with Elementi built-in interactive widgets:

  • Action to Switch widget switches to displaying a different content when a designed Shared Variable is updated.
  • Click to Action & Key to Action widgets update a Shared Variable on another HMP following a click / key press event.
  • Media Playback widget changes the playing mode of a media when a designed Shared Variable is updated.

Data feed widgets can also be used to display the content of a Shared Variable as demonstrated within the Instant messaging project.

Advanced

For advanced users / developers, some good resources for creating complex interactive content can be found on these pages:

See also

This page was last modified on 13 October 2020, at 18:01.