class

Worker::AudioPlayer

Inherits Reference < Object

Single audio player

Constants

AUDIO_LOAD_FAILED_TIMEOUT = 3.seconds
AUDIO_PLAY_INTERVAL = 1.second
CONNECTION_CHECK_INTERVAL = 500.milliseconds
CONNECTION_TIMEOUT = 6.seconds
Log = Worker::Log.for("audio_player")
MAXIMUM_SIZE = 2000
PLAY_STOP_AWAIT = 10.seconds
PLAY_STOP_CHECK_INTERVAL = 500.milliseconds
PREMIUM_MAXIMUM_SIZE = 10000

Constructors

new(worker : Worker, server_id : UInt64)
Source

Instance methods

channel_id
Source
channel_id=(channel_id : UInt64 | Nil)
Source
connected?
Source
connecting?
Source
current_audio
Source
disconnected?
Source
disconnecting?
Source
play(channel_id : UInt64) : Nil
Source
playing?
Source
queue
Source
skip
Source
status
Source
stop(preserve_current : Bool = false, await_fiber : Bool = false) : Nil
Source

Nested types