StreamerSongList

StreamerSonglist

Contents

Outgoing channel : "STREAMERSONGLIST_CHANNEL"

Description

Handles song request queues from the StreamerSonglist website. Shows queue, add/remove/played new songs etc

Triggers/Actions

Triggers and actions below are updated when the automatic document generation system is run and only contain triggers actions relating to this specific extension.

Table last updated: Wed, 12 Mar 2025 05:38:02 GMT

Triggers

name trigger description
SSLSongAddedToQueue trigger_SongAddedToQueue Song was added to queue
SSLCurrentSongChanged trigger_CurrentSongChange Current song changed

Actions

name trigger description
SSLAddSongToQueue action_AddSongToQueue Add a song to the queue
SSLPlaySong action_MarkSongAsPlayed Mark a song as played

"StreamerSongList" Extension Details...

Connects to the StreamerSongList service to allow adding/removing/viewing songlist data.
Mostly used by music streamers to queue music for viewers.
Source:

Methods

SaveConfigToServer()

save config file to the server
Source:

SendCredentialsModal(extensionname)

Send our CredentialsModal to whoever requested it
Parameters:
Name Type Description
extensionname String
Source:

SendSettingsWidgetSmall(tochannel)

send some modal code to be displayed on the admin page or somewhere else this is done as part of the webpage request for modal message we get from extension. It is a way of getting some user feedback via submitted forms from a page that supports the modal system
Parameters:
Name Type Description
tochannel String
Source:

addSongToQueueById(songId)

Adds a song by id to the songlist queue on the server
Parameters:
Name Type Description
songId number
Source:

addSongToQueuebyName(songName)

Adds a song by name to the songlist queue on the server
Parameters:
Name Type Description
songName string
Source:

fetchSongList()

Fetches the full songlist from the StreamerSonglist server
Source:

fetchSongQueue()

Fetches the current song queue from the StreamerSonglist server
Source:

findtriggerByMessageType(messagetype)

Find a trigger by messagetype
Parameters:
Name Type Description
messagetype string
Source:
Returns:
trigger

heartBeatCallback()

Sends out heartbeat messages so other extensions can see our status
Source:

initialise(app, host, port, heartbeat)

Starts the extension using the given data.
Parameters:
Name Type Description
app object:Express
host string
port number
heartbeat number
Source:

joinSslServer()

Joins the StreamerSonglist service
Source:

markSongAsPlayed(queueId)

Mark a song in the current queue as being played
Parameters:
Name Type Description
queueId number
Source:

onDataCenterConnect(socket)

Connection message handler
Parameters:
Name Type Description
socket *
Source:

onDataCenterDisconnect(reason)

Disconnection message sent from the server
Parameters:
Name Type Description
reason String
Source:

onDataCenterMessage(server_packet)

receives message from the socket
Parameters:
Name Type Description
server_packet data
Source:

outputSongList()

Outputs the full songlist on our channel
Source:

outputSongQueue()

Sends the current songQueue out on our channel
Source:

pollSongListCallback()

Timer for polling the songlist
Source:

pollSongQueueCallback()

Callback from the song queue timer
Source:

removeSongFromQueue(queueId)

Removes a songqueue song using it's queueId
Parameters:
Name Type Description
queueId number Queue id of item to remove
Source:

sendCurrentSongChange(extension)

Sends a trigger_CurrentSongChange message to given extensionextension
Parameters:
Name Type Description
extension string
Source:

sendSongQueue(extensionsname)

Sends the current songQueue to the given extension name
Parameters:
Name Type Description
extensionsname string
Source:

sendSonglist(extension)

Sends the full songlist to given extensionextension
Parameters:
Name Type Description
extension string
Source:

sendTriggersAndActions(from)

Sends out triggers and actions out to the given extension name
Parameters:
Name Type Description
from string
Source: