Comments (4)
Hm, would it be better to do something like:
private void TrackUpdate(TrackFinishData data)
{
data.LavaPlayer.CurrentTrack = data.Track;
Finished?.Invoke(data.LavaPlayer, data.Track, data.Reason);
}
from victoria.
Actually yeah that sounds good. Didn't even occur to me.
from victoria.
Those changes have been implemented. Lemme know how it goes for you and close this issue if it works out.
from victoria.
During recent update I've changed the whole method:
private void TrackUpdateInformation(ulong guildId, TrackReason reason, LavaTrack track)
{
_lavalink.LogDebug("Received track update.");
if (!_players.TryGetValue(guildId, out var old)) return;
old.CurrentTrack = track;
_players.TryUpdate(guildId, old, old);
Finished?.Invoke(old, track, reason);
}
Hopefully that fixed the issues you were having. I'm now gonna be closing this issue.
from victoria.
Related Issues (20)
- [Bug]: TrackStartEvent fires twice
- LavaPlayer.VoiceChannel value doesn't change after moving to another channel HOT 1
- [Feature Request]: TrackEncoder HOT 8
- [Bug]: Expected end of string, but instead reached end of data. HOT 5
- [Bug]: https://yucked.github.io/Victoria/ Endpoint returns 404 HOT 1
- [Bug]: SkipAsync does not work for child classes of LavaTrack HOT 1
- [Bug]: Equalizer does not propagate updates? HOT 4
- [ BUG ] LavaPlayer.Vueue should be LavaPlayer.Queue and should be referred to something similar throughout the code HOT 4
- [ BUG ] .PlayAsync with PlayArgs always throws NullReferenceException HOT 1
- [ BUG ] GetPlayer&TryGetPlayer fails with KeyNotFoundException HOT 1
- [ BUG ] Some video make Victoria throw a silent exception, making all event not tigger anymore HOT 1
- [ BUG ] Some video make Victoria throw a silent exception, making all event not tigger anymore HOT 1
- How do I set up my services when using v6 version ? HOT 2
- [ BUG ] Tracks sometimes get stuck at the end of playback. HOT 5
- Can no longer add the lava node to IServiceCollection HOT 3
- [ BUG ] LavaTrackConvert fails to successfully
- [ BUG ] LavaTrackConverter fails to deserialize back to a LavaTrack
- [ BUG ] Victoria sending blank or slightly wrong payloads for the Stop and Resume functions to work expectedly HOT 1
- Error with LavaNode HOT 1
- [BUG] Failed to parse Websocket messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from victoria.