disable filters for livestream
This commit is contained in:
parent
7f39ee07fe
commit
763a9b2dfc
1 changed files with 8 additions and 0 deletions
|
@ -466,6 +466,14 @@ export class Player extends EventEmitter {
|
||||||
new PlayerError('Not playing')
|
new PlayerError('Not playing')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (queue.playing.raw.live)
|
||||||
|
return void this.emit(
|
||||||
|
PlayerEvents.ERROR,
|
||||||
|
PlayerErrorEventCodes.LIVE_VIDEO,
|
||||||
|
message,
|
||||||
|
new PlayerError('Cannot use setFilters on livestream')
|
||||||
|
);
|
||||||
|
|
||||||
Object.keys(newFilters).forEach((filterName) => {
|
Object.keys(newFilters).forEach((filterName) => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
queue.filters[filterName] = newFilters[filterName];
|
queue.filters[filterName] = newFilters[filterName];
|
||||||
|
|
Loading…
Reference in a new issue