docs
This commit is contained in:
parent
a154f48582
commit
9b1d0e72d0
4 changed files with 42 additions and 0 deletions
11
docs/faq/custom_filters.md
Normal file
11
docs/faq/custom_filters.md
Normal 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
10
docs/faq/live_video.md
Normal 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
13
docs/faq/pause_resume.md
Normal 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);
|
||||
```
|
|
@ -6,6 +6,14 @@
|
|||
files:
|
||||
- name: Extractors API
|
||||
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
|
||||
files:
|
||||
- name: Using Cookies
|
||||
|
|
Loading…
Reference in a new issue