SignStixEngine
Modifier and Type | Function and Description |
---|---|
void |
jumpToFrame(int frameNumber)
Jump the signage animation timeline to the argument frame number.
|
void |
jumpToSignInSequence(String signName)
Jump to the first sign with the argument name (as seen in Director) in the
currently playing sequence.
|
void |
jumpToSignInSequenceById(String signId)
Jump to the first with with the argument ID in the currently playing sequence.
|
void |
jumpToVideoAt(int index)
Jump the video playback to the start of the video found at the argument
index within the current playlist.
|
void |
overlaySignInSequence(String signName,
int startDelayMs,
boolean useVW)
Display the sign identified by the argument signName as an overlay.
|
void |
pauseSignage()
Pause the signage timeline.
|
void |
pauseVideo()
Pause the video playback.
|
void |
playSound(String url)
Play the argument sound to completion, starting as soon as possible.
|
void |
resumeSignage()
Resume the signage timeline.
|
void |
resumeVideo()
Resume the video.
|
void |
seekVideo(String index,
long timeInMs)
Seek the given index video to the given time in milli seconds
|
void |
setInteractionOccurred()
Inform the engine that some user interaction has occurred.
|
void |
setPlaylistFromVideoFile(String fileRef)
Replace the video playlist associated with the current sign with a new playlist containing
the argument video file only.
|
void |
setPlaylistFromVideoFiles(String files)
Replace the video playlist associated with the current sign with a new playlist containing
the argument video files from the actual playlist or the video ID from associated folder.
|
void jumpToSignInSequence(String signName)
Note that this function will first cancel any signage or video pause that may be in effect. This is to avoid situations where a new sign appears to be frozen because a pause had happened on the previous sign.
signName
- name of the sign to jump to. If no such sign exists in
the current sequence, an error will occur.void jumpToSignInSequenceById(String signId)
The ID is an invariant identifier so code which uses it will continue to work even if the name of the target sign is changed. To find the ID of a sign, go to edit the sign in Director, and the ID is shown as part of the URL in the address bar.
Note that this function will first cancel any signage or video pause that may be in effect. This is to avoid situations where a new sign appears to be frozen because a pause had happened on the previous sign.
signId
- the ID of the sign to jump to. If no such sign exists in
the current sequence, an error will occur.void jumpToFrame(int frameNumber)
frameNumber
- starts at 1. An error will occur if the frameNumber is
less than 1. If this frame is beyond the final frame of the sign,
it will automatically be 'wrapped round' so that it is in the
legal range.void jumpToVideoAt(int index)
index
- the index of the desired video within the current playlist,
starting at 0. An error will occur if the index is less than 0, or
greater-than-or-equal-to the number of videos in the current
playlist.void pauseSignage()
void resumeSignage()
void seekVideo(String index, long timeInMs)
index
- empty string can be given if we need to seek to the currently playing videotimeInMs
- time in milliseconds to seek tovoid pauseVideo()
void resumeVideo()
void playSound(String url)
url
- a URL where the sound file can be found. Typically MP3.void setInteractionOccurred()
This is intended for use in scenarios where a user is interacting with a connected external device, and the player is required to behave as if it's being interacted with directly.
void setPlaylistFromVideoFile(String fileRef)
fileRef
- reference to a video file within the associated folder structure.void setPlaylistFromVideoFiles(String files)
files
- JSON-formatted string containing the attributes:
fileId
- the invariant ID of the video from assigned playlist.
fileRef
- the invariant ID of the video from associated folder.
void overlaySignInSequence(String signName, int startDelayMs, boolean useVW)
signName
- the name of a sign within the current sequence.startDelayMs
- the number of milliseconds from now when the overlay should start.useVW
- true to use video-wall geometry for the overlay sign, false to use standard
single-panel geometry. When this is true and this device is in a master/slave synchronisation
group, the other devices in the group will be notified of the overlay and will endeavour to
display it as well (using video-wall geometry), providing they also have the same sign in
their currently playing sequence.