Releases: Androz2091/discord-player
@discord-player/opus@0.1.1
@discord-player/opus
Streamable Opus encoder and decoder for Discord Player.
Installation
$ yarn add @discord-player/opus
Additionally, install one of the following opus libraries:
mediaplex
@discordjs/opus
opusscript
node-opus
If one does not work, feel free to switch to another.
Adding custom opus library
import { OPUS_MOD_REGISTRY } from '@discord-player/opus';
OPUS_MOD_REGISTRY.unshift(['my-opus-package-name', (mod) => ({ Encoder: mod.OpusEncoder })]);
Make sure to use this code before using any of the opus classes.
Example
import { OpusEncoder, OpusDecoder } from '@discord-player/opus';
// encode
const opusStream = getPcmStreamSomehow().pipe(new OpusEncoder({ rate: 48000, channels: 2, frameSize: 960 }));
// decode
const pcmStream = getOpusStreamSomehow().pipe(new OpusDecoder({ rate: 48000, channels: 2, frameSize: 960 }));
@discord-player/opus@0.1.0
@discord-player/opus
Streamable Opus encoder and decoder for Discord Player.
Installation
$ yarn add @discord-player/opus
Additionally, install one of the following opus libraries:
mediaplex
@discordjs/opus
opusscript
node-opus
If one does not work, feel free to switch to another.
Adding custom opus library
import { OPUS_MOD_REGISTRY } from '@discord-player/opus';
OPUS_MOD_REGISTRY.unshift(['my-opus-package-name', (mod) => ({ Encoder: mod.OpusEncoder })]);
Make sure to use this code before using any of the opus classes.
Example
import { OpusEncoder, OpusDecoder } from '@discord-player/opus';
// encode
const opusStream = getPcmStreamSomehow().pipe(new OpusEncoder({ rate: 48000, channels: 2, frameSize: 960 }));
// decode
const pcmStream = getOpusStreamSomehow().pipe(new OpusDecoder({ rate: 48000, channels: 2, frameSize: 960 }));
discord-player@6.6.2
What's Changed
- Add showcase by @mariusbegby in #1762
- Rename bot in showcase by @mariusbegby in #1765
- docs(resource): update 'auricle-music-bot' description by @itsauric in #1766
- fix queueDelete event not getting emitted properly by @phxgg in #1776
- feat(AttachmentExtractor): experimental mediaplex support by @skdhg in #1780
- Update showcase.ts (added yandexmusic ext) by @kotisoff in #1784
- Update
QueryResolver#resolve
to return sanitized query and type - Add
pauseOnEmpty
option (Enabled by default) - Add
willAutoPlay
event for autoplay track selection - Fix
queueDelete
event not getting emitted properly - Set default group as client id
- Add
Player#create
method to create new instance ofPlayer
(overrides singleton behavior)
New Contributors
- @mariusbegby made their first contribution in #1762
- @phxgg made their first contribution in #1776
- @kotisoff made their first contribution in #1784
Full Changelog: https://github.com/Androz2091/discord-player/compare/discord-player@6.6.1...discord-player@6.6.2
@discord-player/extractor@4.4.1
Updates
-
feat(YoutubeExtractor): add support for youtube-ext (#1786)
You can now useyoutube-ext
as a youtube streaming lib. -
feat(AttachmentsExtractor): add support for mediaplex metadata parser
You can installmediaplex
package to add support for attachments metadata (duration, title, author, etc). -
fix(SpotifyExtractor): fix spotifySong not loading
The bug withspotifySong
query type has been fixed. It should now properly load spotify tracks with/intl-COUNTRY_CODE
included
discord-player@6.6.1
What's Changed
- docs(resource): update flowease's discord-player version in showcase.ts by @Lutra-Fs in #1755
- Fix typo for userVoiceChannel in the documention by @L0SER8228 in #1756
- createProgressBar options by @chimnayajith in #1757
- feat: introduce BridgeSource by @skdhg in #1760
New Contributors
- @Lutra-Fs made their first contribution in #1755
- @chimnayajith made their first contribution in #1757
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/equalizer@0.2.2...discord-player@6.6.1
@discord-player/utils@0.2.2
Changes
- fix(Queue):
removeOne
should only remove first item (#1758)
@discord-player/extractor@4.4.0
Changes
- feat: introduce BridgeProvider (#1760)
discord-player@6.6.0
What's Changed
- docs(resources): add Mirasaki Music Bot by @Mirasaki in #1745
- Bump community resource version by @Mirasaki in #1748
- 📝 Fix broken URL in document by @GreenScreen410 in #1752
- refactor: website rewrite by @skdhg in #1753
- feat:
channelPopulate
and friends
New Contributors
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/extractor@4.3.1...discord-player@6.6.0
@discord-player/equalizer@0.2.2
What's Changed
- fix: volume value
New Contributors
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/extractor@4.3.1...@discord-player/equalizer@0.2.2
discord-player@6.5.0
Changelog
- fix(QueryResolver): spotify playlists were treated as youtube playlists
- feat(GuildQueueEvents): add
willPlayTrack
event - types(GuildQueueEvent): make events constant usable in event listener
- feat(GuildQueue): expose
maxSize
andmaxHistorySize
- feat(GuildQueue): add
options.preferBridgedMetadata
- fix(Track): resolve
null
upon metadata query failure - feat(GuildQueuePlayerNode): add
.totalDuration
getter - feat(GuildQueuePlayerNode): implement
StreamConfig
Example of willPlayTrack
event
// listening to this event pauses discord-player's execution process until `done()` is invoked
player.events.on(GuildQueueEvent.willPlayTrack, (queue, track, config, done) => {
// set volume to 30%
config.dispatcherConfig.volume = 30;
// seek to 20 seconds before playing
config.playerConfig.seek = 20;
// tell discord-player to resume execution process
return done();
});
Full Changelog: https://github.com/Androz2091/discord-player/compare/@discord-player/extractor@4.3.0...discord-player@6.5.0