This commit is contained in:
Snowflake107 2021-05-08 15:53:38 +05:45
parent a154f48582
commit 9b1d0e72d0
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# How to add custom audio filters
Audio filters in **Discord Player** are **[FFmpeg audio filters](http://ffmpeg.org/ffmpeg-all.html#Audio-Filters)**. You can add your own audio filter like this:
```js
const { AudioFilters } = require("discord-player");
AudioFilters.define("3D", "apulsator=hz=0.128");
// later, it can be used like this
player.setFilters(message, { "3D": true });
```

10
docs/faq/live_video.md Normal file
View file

@ -0,0 +1,10 @@
# How to play live videos
You cannot play live videos by default. If you need to play the live video, just add this option:
```js
const player = new Player(client, {
enableLive: true // enables livestream
});
```
However, you cannot use audio filters with livestreams using this library!

13
docs/faq/pause_resume.md Normal file
View file

@ -0,0 +1,13 @@
# Pause and Resume is not working properly
This is a bug in **[discord.js#5300](https://github.com/discordjs/discord.js/issues/5300)**.
# Fix
You have to update your command something like this:
```diff
- client.player.resume(message);
+ client.player.resume(message);
+ client.player.pause(message);
+ client.player.resume(message);
```

View file

@ -6,6 +6,14 @@
files: files:
- name: Extractors API - name: Extractors API
path: extractor.md path: extractor.md
- name: FAQ
files:
- name: Custom Filters
path: custom_filters.md
- name: Livestreams
path: live_video.md
- name: Pause & Resume
path: pause_resume.md
- name: YouTube - name: YouTube
files: files:
- name: Using Cookies - name: Using Cookies