openframeworks / openframeworks/openFrameworks

Emscripten - AUDIO not defined error with video player

Open
#8,291 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Uncaught ReferenceError: AUDIO is not defined

Uncaught ReferenceError: AUDIO is not defined
    at _html5video_player_create (http://localhost:6931/index.js:22482:16)
    at index.wasm.ofxEmscriptenVideoPlayer::ofxEmscriptenVideoPlayer()_581 (http://localhost:6931/index.wasm:wasm-function[553]:0x1d24bd)
    at index.wasm.ofVideoPlayer::load(std::__2::filesystem::path const&) (http://localhost:6931/index.wasm:wasm-function[1421]:0x2163e3)
    at index.wasm.ofApp::setup() (http://localhost:6931/index.wasm:wasm-function[494]:0x1d0604)

with current nightly and any example using ofVideoPlayer

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the error with any example using ofVideoPlayer and the current nightly, then inspect the generated index.js at _html5video_player_create and the related ofVideoPlayer call shown in the stack trace. Done means the example starts without the AUDIO ReferenceError and the video player loads successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.