Package tv.phantombot.panel
Class WsAlertsPollsHandler
java.lang.Object
tv.phantombot.panel.WsAlertsPollsHandler
- All Implemented Interfaces:
WsFrameHandler
- Author:
- gmt2001
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
alertImage
(String imageInfo) void
alertImage
(String imageInfo, boolean ignoreIsPlaying) boolean
Gets theWsAuthenticationHandler
assigned to this endpointvoid
handleFrame
(ChannelHandlerContext ctx, WebSocketFrame frame) Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandler
returnedtrue
int
hashCode()
void
void
void
void
register()
Registers thisWsFrameHandler
with theWebSocketFrameHandler
void
sendJSONToAll
(String jsonString) void
Sends a macro to be played by the alerts overlayvoid
void
void
triggerAudioPanel
(String audioHook) void
triggerAudioPanel
(String audioHook, boolean ignoreIsPlaying) void
triggerAudioPanel
(String audioHook, float volume) void
triggerAudioPanel
(String audioHook, float volume, boolean ignoreIsPlaying) void
triggerEmote
(String image) void
triggerEmote
(String image, int amount) void
triggerEmote
(String emoteId, int amount, String provider) void
triggerEmote
(String emoteId, int amount, String provider, boolean ignoreSleep) void
triggerEmote
(String image, String provider) void
triggerEmoteAnimation
(String emoteId, int amount, String provider, String animationName, int duration, boolean ignoreSleep) void
triggerEmotes
(String emoteString) Takes a string to parse and trigger one or more emotes.void
triggerEmotes
(String[] emotes, String provider)
-
Constructor Details
-
WsAlertsPollsHandler
-
-
Method Details
-
register
Description copied from interface:WsFrameHandler
Registers thisWsFrameHandler
with theWebSocketFrameHandler
- Specified by:
register
in interfaceWsFrameHandler
- Returns:
-
getAuthHandler
Description copied from interface:WsFrameHandler
Gets theWsAuthenticationHandler
assigned to this endpoint- Specified by:
getAuthHandler
in interfaceWsFrameHandler
- Returns:
- An
WsAuthenticationHandler
-
handleFrame
Description copied from interface:WsFrameHandler
Handles the WebSocket frame and sends a response back to the client, if necessary Only gets called if theWsAuthenticationHandler
returnedtrue
- Specified by:
handleFrame
in interfaceWsFrameHandler
- Parameters:
ctx
- TheChannelHandlerContext
of the sessionframe
- TheWebSocketFrame
to process
-
sendJSONToAll
-
triggerAudioPanel
-
triggerAudioPanel
-
triggerAudioPanel
-
triggerAudioPanel
-
stopMedia
public void stopMedia() -
stopMedia
-
alertImage
-
alertImage
-
playVideo
-
playVideo
-
playVideo
-
playVideo
-
triggerEmotes
Takes a string to parse and trigger one or more emotes. Each emote entry is separated by a '/'. An emote describes its occurrences in the (here not relevant) string in simple start-stop notation. Multiple occurrences are separated by a comma.This is the default method that handles Twitch style emotes and uses the default emote provider Twitch
- Parameters:
emoteString
- a string in format of Twitch's emote format e.g. "425618:0-2,4-6,8-10/145315:12-24"
-
triggerEmotes
-
triggerEmote
-
triggerEmote
-
triggerEmote
-
triggerEmote
-
triggerEmote
-
triggerEmoteAnimation
-
sendMacro
Sends a macro to be played by the alerts overlay- Parameters:
macroJson
- A json string with commands
-
hashCode
public int hashCode() -
equals
-