Releases: Androz2091/discord-player
@discord-player/[email protected]
Updates
- added support for
@evan/opus
- some improvements
@discord-player/[email protected]
Changelog
- smart bridging
- improve soundcloud autoplay
- automatic bridging support
- lots of other improvements
@discord-player/[email protected]
@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/[email protected]
@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 }));
[email protected]
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/[email protected]@6.6.2
@discord-player/[email protected]
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
[email protected]
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/[email protected]@6.6.1
@discord-player/[email protected]
Changes
- fix(Queue):
removeOne
should only remove first item (#1758)
@discord-player/[email protected]
Changes
- feat: introduce BridgeProvider (#1760)
[email protected]
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/[email protected]@6.6.0