Comments (4)
I assume you mean using the delayed event?
from songbird.
Not at present, no. Play/Pause (i.e., changes to PlayMode
) would be useful additions to TrackEvent
.
For now, I think you can work around this by adding a timed event to a track which fires in the first 20ms (i.e., set it to 5ms or similar). These fire based on the playback time for a track, so a track which transitions from paused to playing will fire this event in the same "tick" as the track starts (assuming this relates to queued tracks).
from songbird.
@peppizza depending upon ur requirement this might not be useful, but to display an embed on track start, I implemented a track end event like this:
https://github.com/saanuregh/bowot-rs/blob/553ce71047c8f8a0c9c8f5ebfb1abaa4de095d03/src/commands/music.rs#L35
But, this method will not display the embed for the first track enqueued.
from songbird.
@saanuregh I achieved something very similar to that except checking for the empty queue when the event is created, and not creating it if its the first song
from songbird.
Related Issues (20)
- How to make Queue Event HOT 1
- How to play/load audio source from base64 HOT 1
- Get songbird instance from external api call HOT 1
- I have tried to work with poise but can't get it to work.
- add custom arg for ffmpeg HOT 5
- thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Ws(Json(Error("invalid value: integer `18`, expected opcode in [0--9] + [12--13]", line: 1, column: 8)))', src\main.rs:159:218 HOT 4
- Possible memory leak in Serenity 0.12 and Songbird 0.4. HOT 4
- ChildContainers has no audio output HOT 1
- Get aux_metadata from a TrackHandle HOT 2
- The track ends sooner than expected HOT 1
- Event on User join HOT 1
- No voice join event for users HOT 2
- Getting an invalid opcode when attempting to play audio HOT 2
- Playback of tracks stops when moving channel HOT 2
- ogg/vorbis playback fails due to invalid modulo if source_packet.frames() returns 0 HOT 1
- Potential bug when writing to `opus_slot` in `mix_symph_indiv` for Opus Passthrough. HOT 10
- Loops stop working after stopping or playing audio over another HOT 3
- No audio playing from standalone call HOT 6
- Handle YouTube rate limitation HOT 1
- M3U8 support (soundcloud) HOT 4
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 songbird.