Skip to content

Releases: Androz2091/discord-player

@discord-player/opus@0.1.1

11 Aug 17:42
Compare
Choose a tag to compare

@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

11 Aug 14:37
Compare
Choose a tag to compare

@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

28 Jul 18:26
Compare
Choose a tag to compare

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 of Player (overrides singleton behavior)

New Contributors

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

28 Jul 18:23
Compare
Choose a tag to compare

Updates

  • feat(YoutubeExtractor): add support for youtube-ext (#1786)
    You can now use youtube-ext as a youtube streaming lib.

  • feat(AttachmentsExtractor): add support for mediaplex metadata parser
    You can install mediaplex package to add support for attachments metadata (duration, title, author, etc).

  • fix(SpotifyExtractor): fix spotifySong not loading
    The bug with spotifySong query type has been fixed. It should now properly load spotify tracks with /intl-COUNTRY_CODE included

discord-player@6.6.1

06 Jul 06:30
Compare
Choose a tag to compare

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

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

06 Jul 06:27
Compare
Choose a tag to compare

Changes

  • fix(Queue): removeOne should only remove first item (#1758)

@discord-player/extractor@4.4.0

06 Jul 06:29
Compare
Choose a tag to compare

Changes

  • feat: introduce BridgeProvider (#1760)

discord-player@6.6.0

27 Jun 09:53
Compare
Choose a tag to compare

What's Changed

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

27 Jun 09:52
Compare
Choose a tag to compare

discord-player@6.5.0

12 Jun 12:17
Compare
Choose a tag to compare

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 and maxHistorySize
  • 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