-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ofVideoPlayer and Emscripten #7377
Comments
Is this some regression? it used to work well? |
@dimitre yes, it was working before (not long ago). will try to find the commit the next days... |
can you please test it again in latest master? |
@dimitre still the same with the latest master. I will have a look into the recent commits, when I have some time (soon). |
@dimitre I found it (actually not sure how to solve this): https://github.com/openframeworks/openFrameworks/pull/7301/files :) |
@2bbb is there a way to enable soundstream for the videoplayer automatically (like before) with Emscripten? Thank you. |
Hi, @Jonathhhan maybe there is a way, I think. |
Notice: I DON'T UNDERSTAND Emscripten. can we call extern int ofxEmscriptenAudioContext();
bool ofxEmscriptenVideoPlayer::load(string name){
ofxEmscriptenAudioContext();
if (name.substr(0, 12) == "blob:http://" || name.substr(0, 13) == "blob:https://"){
....
} this way is to only for test. if it clear problem, then we need to decide to make ofxEmscriptenAudioContext public in header, or not. |
@2bbb thanks a lot. I tried your suggestion but it does not work. |
Sort of a hack but this works for me: https://gist.github.com/ofTheo/4283463783876f901f80c00f99bc56ec |
With the current OF branch the videoPlayer examples only work with Emscripten, if I use
ofSoundStream
(before loading the video player) inofSetup
. Somehow that was not needed before...Thats the error without
ofSoundStream
:AUDIO
is defined in https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxEmscripten/libs/html5audio/lib/emscripten/library_html5audio.js and used by the videoPlayer, because it uses the same audioContext (which is needed for panning for example)...The text was updated successfully, but these errors were encountered: