AMX IS-SPX-1000/1300 manual When To Use Remote Control of Playback

Page 47

Remote Control

FIG. 50 Controlling the value of the variable

It is also possible to use JavaScript directly to control the value of the shared variables. The sample code below assumes that we want to control the content on 192.168.1.10 by clicking on a rectangle.

<?xml version="1.0" encoding="UTF-8"?>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/ xml-events" viewBox="0 0 1280 720" viewport-fill="white">

<rect x="540" y="260" width="200" height="200" fill="blue"> <handler ev:event="click">

<![CDATA[

var v=createSharedVariable( "menu@192.168.1.10" ); v.set( "P1" );

]]>

</handler>

</rect></svg>

Remote Control of Playback

The playback.svg template in the Interactivity template folder acts as a transparent container for a single media file and lets you control its playback. Using this template, you can pause and restart any type of document including animations, playlists and videos.

When To Use Remote Control of Playback

You can use it to control the main document or for individual media files. It supports the following operations: Pausing and resuming playback.

Changing the current time position.

Synchronized control of the same media on multiple screens. Control from multiple clients over the network and/or serial port.

How To Use Remote Control of Playback

The control is based on a shared variable, the default name of which is “playback”. In its basic usage, it takes two values: “PLAY” or “PAUSE”.

For playback control on multiple screens or better resilience, an optional timestamp can follow the PLAY or PAUSE string (FIG. 51). It is defined as the time position in seconds where playback should pause or resume. This extra parameter enables unambiguous control over the timeline.

If the variable is stored in a central server, this lets you control the playing (or pause) time, even if the target device was off or has restarted in between two commands. It also enables frame accurate synchronization of playback on multiple targets, as well as control over the current time position.

Inspired XPress - Programming Guide

39

 

 

Image 47
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 Introduction InstallationWhen to use XPress Authoring Features? Installing Inspired Signage XPress for the First TimeXPress must be restarted to complete the activation Minimum Recommended PC RequirementsXPress Removal Installation LocationInspired Signage XPress UI XPress Main Interface Learning XPress Authoring FeaturesXPress Projects My Projects folder Creating a New ProjectNew Project dialog Target Browsing PanelImporting Video Importing Multi-Media FilesImporting Images Importing Flash SWF Files Importing PowerPoint PresentationsCreating and Editing SVG 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 LinksCustomizing a Multi-Layer SVG Document Multi-Layered SVG TemplatesComposing a Scene Playlist Template Example EditingComposing a playlist SVG document How to Customize a Playlist SVG DocumentPlaylist Tab Format Helpers Special News TemplatesComposing a Live News Document Layout TemplatesNewscrawler.svg Customizing a News SVG DocumentNews.svg Newsticker.svgFittext.svg Using Format HelpersSwitch.svg Bouncingtext.svgExample of 169 content Scalable Content and Aspect Ratio of Your Display169 templates as shows on a 43 screen Adding Effects Configuring EffectsMultimedia Effects Previewing Preview XPress ContentPublishing Using Quick PublishManually Add Devices to XPress MonitoringOpen a Device Scheduling the Content Displayed by an IS-SPX PlayerScheduling Check the Status of the DevicesOpen a Schedule Create a New ScheduleCalendar view Add Events To a ScheduleModify the Scheduling Properties of an Event Define Default Events and RecurrencesDefine a Default Animation Edit recurrence rule Define Recurring EventsData Polling Rates Preview Scheduled ContentOverview Remote Control of ContentWhen To Use Remote Control How To Use Remote ControlID table Playlist Triggering a Content Switch Over IP Settings menu Enable Network API Example TestingSwitching Content With a USB HID Device Switching Content With the Serial PortKey Identifiers tab Switching Content From Another DeviceHow To Use Remote Control of Playback Remote Control of PlaybackWhen To Use Remote Control of Playback Interactive Pause/Resume Over TCP Interactive Pause/Resume Using Http GETTimed pause/seek/resume GET Embedded In an HtmlInteractive Pause/Resume From a Device Knowing the Current Position With Extra Accuracy Getting Feedback On the Playback ProgressTriggering a Text or Image Overlay Triggering an Alternative ContentRemote Triggers Triggering of SVG Animations Designing Basic Projects for Multiscreen Layouts Application ExamplesMultiscreen Displays 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 ContentCreate a Virtual Device Configuring XPress and the IS-SPX PlayerConfigure the Multiscreen ID Synchronizing Devices SynchronizationPublish Your Project To Your Device Administration Date/Time Configure NTP Through the Http InterfaceConfiguration Advanced ConfigurationUsing an IS-SPX Player as an NTP Server Master/Server Architecture Examples Configuration of the IS-SPX Player Acting as MasterMultiscreen Elements Syntax for Multiscreen Synchronized ContentSynchronization Elements Canvas and Viewbox ConceptsSpxbegin Element Additional Syntax for Multiscreen ContentExtension of the SVG switch Element Example Screen Layout With Six Screens Extension of JavaScriptExample Screen Layout With Spread Displays Example switch SVG ElementProject Creation TroubleshootingExample JavaScript NTP SynchronizationSynchronized 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 MediaSuggestions for Further Projects Testing the ProjectPlayback Projects New Project Playback TemplateExample Media player Controlling the MediaPlayback Position 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 Interface Concepts Behind Shared VariablesJavascript API Reading the Variable Setting the VariableSample Code Network APINetwork API Commands List of CommandsSample Code Enabling the Network APIAPI Emulation Restarting XPress will reset all the shared variablesShared Variables Inspired XPress Programming Guide Serial Control Gathering Display Serial Protocol CommandsSerial Protocol Commands Text Creating a Serial Protocol File Serial Protocol Commands HexHex Manual Command Text EntriesVariable List Volume Control VariableMute Off Sound Screen Mute Picture OnScreen Mute Picture Off Mute On 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 Serial Control From NetLinx Power commandAdding Additional Templates to Inspired Signage XPress FSM Commonly Used TermsIncrease Your Revenue through education + knowledge