nhtua / greencam

a virtual green backdrop for OBS Studio
Apache License 2.0
195 stars 22 forks source link

Browser source in OBS not working #3

Closed vojtabiberle closed 3 years ago

vojtabiberle commented 3 years ago

When I'm trying to set up "hard way" of greencam and run OBS with --enable-gpu --enable-media-stream params and use Browser source, app is still loading and in cosole are those two errors:

[1031/203957.018223:INFO:CONSOLE(31)] "Something went wrong!", source: https://greencam.netlify.app/app.js (31)
[1031/203957.018351:INFO:CONSOLE(32)] "[object DOMException]", source: https://greencam.netlify.app/app.js (32)

OBS version: 25.0.8-2 (linux) Browser version: obs-linuxbrowser-bin 0.6.1-1

edurenye commented 3 years ago

For me works fine with obs --use-fake-ui-for-media-stream --enable-gpu --enable-media-stream in OBS 26.1.

PeterKW commented 3 years ago

I don't know if this is related but when I load it in the browser I get endless loading and these errors in the console: failed to load resource: net::ERR_FILE_NOT_FOUND body-pix.min.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND bluebird.min.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND app.js:84 Uncaught ReferenceError: bodyPix is not defined at initMLModel (app.js:84) at HTMLVideoElement.video.onloadeddata (app.js:71) initMLModel @ app.js:84 video.onloadeddata @ app.js:71

image

vojtabiberle commented 3 years ago

For me works fine with obs --use-fake-ui-for-media-stream --enable-gpu --enable-media-stream in OBS 26.1.

Now works for me too (with new OBS 26.1 with building browser)

nhtua commented 3 years ago

@PeterKW Looks like you need to run npm install first.

nhtua commented 3 years ago

@vojtabiberle I close this issue since I couldn't reproduce the error on my side, and it also works on your new OBS 26.1.