Remove Lavaplayer and migrate to Lavalink
Replaced the bot's audio handling system by removing Lavaplayer dependencies and migrating to a Lavalink v4 node. Updated `MusicManager`, `TrackScheduler`, and related classes to utilize the `LavalinkClient`. Refactored playlist and track loading logic, task integrations, and event dispatch to integrate with the remote node. Deprecated the custom Udio source, preserving references for a future plugin port. Documented configuration and deployment details for the new audio architecture.
This commit is contained in:
1 parent
01bfe22d22
commit
4cf7c47645
34 files changed
+1187
-479
No files matched your search
@@ -0,0 +1,65 @@
|
||||
server:
|
||||
port: 2333
|
||||
address: 0.0.0.0
|
||||
|
||||
lavalink:
|
||||
plugins:
|
||||
# Replacement for the in-process dev.lavalink.youtube:v2 source manager.
|
||||
# Custom SABR-enabled fork (ashton045/youtube-source, feat/sabr-support) built by JitPack.
|
||||
- dependency: "com.github.ashton045.youtube-source:youtube-plugin:33d50abd5f"
|
||||
repository: "https://jitpack.io"
|
||||
snapshot: false
|
||||
server:
|
||||
password: "${SERVER_PASSWORD:youshallnotpass}"
|
||||
sources:
|
||||
# Handled by the youtube-plugin below, must stay disabled here.
|
||||
youtube: false
|
||||
soundcloud: true
|
||||
bandcamp: false
|
||||
twitch: false
|
||||
vimeo: false
|
||||
nico: false
|
||||
http: true
|
||||
local: false
|
||||
filters:
|
||||
volume: true
|
||||
bufferDurationMs: 400
|
||||
frameBufferDurationMs: 5000
|
||||
opusEncodingQuality: 10
|
||||
resamplingQuality: LOW
|
||||
trackStuckThresholdMs: 10000
|
||||
useSeekGhosting: true
|
||||
youtubePlaylistLoadLimit: 6
|
||||
playerUpdateInterval: 5
|
||||
youtubeSearchEnabled: true
|
||||
soundcloudSearchEnabled: true
|
||||
|
||||
plugins:
|
||||
youtube:
|
||||
enabled: true
|
||||
allowSearch: true
|
||||
allowDirectVideoIds: true
|
||||
allowDirectPlaylistIds: true
|
||||
clients:
|
||||
- TV
|
||||
- MWEB
|
||||
- WEB
|
||||
- MUSIC
|
||||
- WEBEMBEDDED
|
||||
- ANDROID_VR
|
||||
- TVHTML5_SIMPLY
|
||||
oauth:
|
||||
enabled: true
|
||||
refreshToken: "${NETNEUTRALITY_OAUTH_TOKEN}"
|
||||
remoteCipher:
|
||||
url: "${NETNEUTRALITY_CIPHER_URL:http://ejs-api:8001}"
|
||||
password: "${NETNEUTRALITY_CIPHER_PASSWORD:}"
|
||||
remotePot:
|
||||
url: "${NETNEUTRALITY_POT_URL:http://webpo:8080}"
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: INFO
|
||||
lavalink: DEBUG
|
||||
# Set to INFO to see the OAuth flow instructions (device code / verification URL) in the terminal.
|
||||
dev.lavalink.youtube.http.YoutubeOauth2Handler: INFO
|
||||
Reference in new issue
Block a user