AMX IS-SPX-1000/1300 manual Switching Content With the Serial Port

Page 45

Remote Control

<html>

<script>

function set( name, value ) { var request=new XMLHttpRequest();

request.open("GET", "http://192.168.1.10:1234/update?"+ encodeURIComponent(name)+"="+encodeURIComponent(value)); request.send();

}

</script>

<body>

<form>

<button onclick="set('menu','P1')">Click</button> </form>

</body>

</html>

Switching Content With the Serial Port

To change the current media via the serial port, you need to do the following:

Create a protocol file (.fsm format) describing the actions to be performed depending on the input on the serial port.

Upload the protocol file to the IS-SPX Player using the Serial Port page of the HTTP configuration interface. Enable the protocol file by selecting it in the protocols drop box.

The protocol file should trigger an <update> action on the variable when matching the input on the serial port.

For instance, the sample below will trigger an update of the menu variable when an '1' or a '2' is received on the serial port.

<?xml version="1.0" encoding="utf-8"?> <protocol target='monitor' startup='start'> <state xml:id='start'>

<onInput match="1" >

<update name='menu' value='L1' /> </onInput>

<onInput match="2" >

<update name='menu' value='L2' /> </onInput>

</state>

</protocol>

Switching Content With a USB HID Device

You can change the current media with a USB keyboard, or any USB device of the HID class that emulates one, including IR remote controls. The keystroke.svg template lets you associate keystrokes with a request to update the value

of the shared variable that controls the current media.

You should have only one keystroke.svg template in each project, preferably as the background layer of the top index.svg. If you have multiple layers which accept keyboard events, you have to make sure the correct one gets the focus. This template has no displayable content and is fully transparent.

Specify the mapping from key to value in the Key Identifiers tab in the keystroke.svg file (FIG. 48). Key identifiers may

be augmented with “modifiers”, so as to match on the key stroke only if some other control key is down at the same time. The valid modifiers are Ctrl, Alt, Shift, AltGr. and Meta. For instance, to match a stroke on “A” while the holding the Control key down, the key identifier is “Ctrl+A”.

Inspired XPress - Programming Guide

37

 

 

Image 45
Contents Inspired Signage XPress WARRANTY, Disclaimer and License Table of Contents Remote Control Synchronized Content Interactivity Serial Protocol File Editor Table of Contents Inspired XPress Programming Guide When to use XPress Authoring Features? InstallationInstalling Inspired Signage XPress for the First Time IntroductionXPress must be restarted to complete the activation Minimum Recommended PC RequirementsInstallation Location Inspired Signage XPress UIXPress Removal Learning XPress Authoring Features XPress ProjectsXPress Main Interface My Projects folder Creating a New ProjectNew Project dialog Target Browsing PanelImporting Multi-Media Files Importing ImagesImporting Video Importing PowerPoint Presentations Creating and Editing SVG FilesImporting Flash SWF Files Template Document Parameters Editing an Existing SVG DocumentMedia description dialog lets you change Edit a Media PropertyInteractively Editing SVG Files Interactive EditingDemonstration of Media Elements Editing Media Elements LayoutEditing Text Editing Media LinksMulti-Layered SVG Templates Composing a SceneCustomizing a Multi-Layer SVG Document Playlist Template Example EditingComposing a playlist SVG document How to Customize a Playlist SVG DocumentPlaylist Tab Composing a Live News Document Special News TemplatesLayout Templates Format HelpersNews.svg Customizing a News SVG DocumentNewsticker.svg Newscrawler.svgSwitch.svg Using Format HelpersBouncingtext.svg Fittext.svgExample of 169 content Scalable Content and Aspect Ratio of Your Display169 templates as shows on a 43 screen Configuring Effects Multimedia EffectsAdding Effects Previewing Preview XPress ContentPublishing Using Quick PublishManually Add Devices to XPress MonitoringScheduling Scheduling the Content Displayed by an IS-SPX PlayerCheck the Status of the Devices Open a DeviceOpen a Schedule Create a New ScheduleCalendar view Add Events To a ScheduleDefine Default Events and Recurrences Define a Default AnimationModify the Scheduling Properties of an Event Edit recurrence rule Define Recurring EventsData Polling Rates Preview Scheduled ContentWhen To Use Remote Control Remote Control of ContentHow To Use Remote Control Overview ID table Playlist Triggering a Content Switch Over IPSettings menu Enable Network API Example TestingSwitching Content With a USB HID Device Switching Content With the Serial PortKey Identifiers tab Switching Content From Another DeviceRemote Control of Playback When To Use Remote Control of PlaybackHow To Use Remote Control of Playback Interactive Pause/Resume Over TCP Interactive Pause/Resume Using Http GETGET Embedded In an Html Interactive Pause/Resume From a DeviceTimed pause/seek/resume Knowing the Current Position With Extra Accuracy Getting Feedback On the Playback ProgressTriggering an Alternative Content Remote TriggersTriggering a Text or Image Overlay Triggering of SVG Animations Application Examples Multiscreen DisplaysDesigning Basic Projects for Multiscreen Layouts New Project menu Creating a Configurable Multiscreen ProjectMultiscreen Properties Finding the multiscreen templates Creating a Multiscreen Project from TemplatesNew multiscreen project can now be Saved and Edited Multiscreen layout drop down options Editing Multiscreen ContentConfiguring XPress and the IS-SPX Player Configure the Multiscreen IDCreate a Virtual Device Synchronization Publish Your Project To Your DeviceSynchronizing Devices Administration Date/Time Configure NTP Through the Http InterfaceAdvanced Configuration Using an IS-SPX Player as an NTP ServerConfiguration Master/Server Architecture Examples Configuration of the IS-SPX Player Acting as MasterSynchronization Elements Syntax for Multiscreen Synchronized ContentCanvas and Viewbox Concepts Multiscreen ElementsAdditional Syntax for Multiscreen Content Extension of the SVG switch ElementSpxbegin Element Example Screen Layout With Six Screens Extension of JavaScriptExample Screen Layout With Spread Displays Example switch SVG ElementExample JavaScript TroubleshootingNTP Synchronization Project CreationSynchronized Content Synchronized Content Inspired XPress Programming Guide Interactivity Template Files Creating Interactive ContentCreating Buttons Creating a Touch Screen MenuAdding an Action ID Controlling MediaEnter Interactive Mode Testing the ProjectCreating the Menu Creating a Keyboard MenuButton Action IDs Configuring the menuRGB values Hexadecimal value Eyedropper tool Color Selection green Controlling the MenuInteractive controls KeystrokesLayers tab keystroke.svg Controlling MediaTesting the Project Playback ProjectsSuggestions for Further Projects New Project Playback TemplateControlling the Media Playback PositionExample Media player Playback.svg details Slider.svg placement Interactivity Settings IS-SPX Player ConfigurationCalibration of a Touchscreen Through the IS-SPX Player Calibration For Touch ScreensTroubleshooting Manual Calibration ProcedureAdding a List Variable Serial Protocol File EditorEdit Variable Page List variable Adding a Range VariableEdit Variable page Range variable Exporting the Finished FilePage Concepts Behind Shared Variables Javascript APIInterface Sample Code Setting the VariableNetwork API Reading the VariableNetwork API Commands List of CommandsSample Code Enabling the Network APIAPI Emulation Restarting XPress will reset all the shared variablesShared Variables Inspired XPress Programming Guide Gathering Display Serial Protocol Commands Serial Protocol Commands TextSerial Control Creating a Serial Protocol File Serial Protocol Commands HexHex Manual Command Text EntriesVariable List Volume Control VariableScreen Mute Picture Off Screen Mute Picture OnMute On Sound Mute Off SoundUploading the Serial Protocol File Under the Administration section, select RS232 / USB IOXPress My Templates Folder Creating New TemplatesXML Tree with new attribute param1 Creating and updating a new calendar fileNew.ics file Power command Adding Additional Templates to Inspired Signage XPressSerial Control From NetLinx FSM Commonly Used TermsIncrease Your Revenue through education + knowledge