will remove ogv.js

This commit is contained in:
rustdesk 2022-02-05 21:46:28 +08:00
parent 7d099ae9c9
commit 03e433789e
5 changed files with 31 additions and 8 deletions

View file

@ -42,11 +42,11 @@ export async function loadVp9(callback) {
);
}
export function loadOpus(callback) {
export function loadOpus(callback, channels, rate) {
window.OGVLoader.loadClass(
"OGVDecoderAudioOpusW",
(audioCodecClass) => {
audioCodecClass({ audioFormat: {} }).then((decoder) => {
audioCodecClass({ audioFormat: { channels, rate } }).then((decoder) => {
decoder.init(() => {
callback(decoder);
})