mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04:00
Fix PR
This commit is contained in:
parent
8162a628a1
commit
1933b1f1a4
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import { EquicordDevs } from "@utils/constants";
|
|||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findStoreLazy } from "@webpack";
|
||||
|
||||
const mediaEngine = findStoreLazy("MediaEngineStore");
|
||||
let mediaEngine = findStoreLazy("MediaEngineStore");
|
||||
|
||||
const originalCodecStatuses: {
|
||||
AV1: boolean,
|
||||
|
@ -62,7 +62,7 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
async start() {
|
||||
const engine = mediaEngine.getMediaEngine();
|
||||
mediaEngine = mediaEngine.getMediaEngine();
|
||||
const options = Object.keys(originalCodecStatuses);
|
||||
// [{"codec":"","decode":false,"encode":false}]
|
||||
const CodecCapabilities = JSON.parse(await new Promise(res => engine.getCodecCapabilities(res)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue