video works

This commit is contained in:
rustdesk
2022-01-21 00:41:02 +08:00
Unverified
parent 50834353b2
commit e291e4d1c9
3 changed files with 17 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ export function loadVp9(callback) {
"OGVDecoderVideoVP9W",
(videoCodecClass) => {
window.videoCodecClass = videoCodecClass;
videoCodecClass().then((decoder) => {
videoCodecClass({ videoFormat: {} }).then((decoder) => {
decoder.init(() => {
callback(decoder);
})
@@ -38,7 +38,7 @@ export function loadOpus(callback) {
window.OGVLoader.loadClass(
"OGVDecoderAudioOpusW",
(audioCodecClass) => {
audioCodecClass().then((decoder) => {
audioCodecClass({ audioFormat: {} }).then((decoder) => {
decoder.init(() => {
callback(decoder);
})