We are in the process of migrating the Spacial Wiki content to our new Help Center at spacial.com.
Please visit the Help Center for latest Tips and Tricks, Documentation and Troubleshooting.
spacial.com/help-center

SOS Appendix C

From SpacialAudio

(Difference between revisions)
Jump to: navigation, search
(Triggering Blackouts via Event Adaptors)
Current revision (21:12, 29 April 2009) (view source)
 
Line 1: Line 1:
-
 
== Triggering Blackouts via Event Adaptors ==
== Triggering Blackouts via Event Adaptors ==
You can easily trigger a blackout via the Event Adaptors by filling in the SongInfo object.
You can easily trigger a blackout via the Event Adaptors by filling in the SongInfo object.
Line 9: Line 8:
* songtype: Set value of 'B' to signal blackout. (Required)
* songtype: Set value of 'B' to signal blackout. (Required)
* duration: Duration of blackout in milliseconds (Required)
* duration: Duration of blackout in milliseconds (Required)
-
* filename: The location of a M3U playlist file containing a list of tracks to play during the blackout. (Optional)
+
* filename: The location of a M3U playlist file containing a list of tracks to play during the blackout. (Required)
-
*: Will use silence when no files are specified.
+
*: If you do not want any audio, write silence as the file.
* intro: Intro file to play at start of blackout. (Optional)
* intro: Intro file to play at start of blackout. (Optional)
* outro: File to play once blackout ends. (Optional)
* outro: File to play once blackout ends. (Optional)

Current revision

Triggering Blackouts via Event Adaptors

You can easily trigger a blackout via the Event Adaptors by filling in the SongInfo object.

For example the following will trigger a 5sec blackout when using the HTTP event adaptor. http://localhost:8181/?songtype=B&duration=5000&filename=test.m3u&intro=test.mp3&outro=test.mp3

Key fields:

  • songtype: Set value of 'B' to signal blackout. (Required)
  • duration: Duration of blackout in milliseconds (Required)
  • filename: The location of a M3U playlist file containing a list of tracks to play during the blackout. (Required)
    If you do not want any audio, write silence as the file.
  • intro: Intro file to play at start of blackout. (Optional)
  • outro: File to play once blackout ends. (Optional)
  • artist, title and other normal song fields can also be specified for display purposes. (Optional)


You can also trigger the end of a blackout by using a songtype value of 'Z', i.e. http://localhost:8181/?songtype=Z

Personal tools