video works
This commit is contained in:
parent
50834353b2
commit
e291e4d1c9
3 changed files with 17 additions and 8 deletions
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue