wawesomeNOGUI / RemoteDesktopForGaming

Gonna have a webrtc video stream of the desktop, and datachannel messages to simulate keypresses/ mouse events on the windows desktop
17 stars 4 forks source link

reading github.com/pion/mediadevices/go.mod at revision v0.0.0: unknown revision v0.0.0 #3

Open ZeoWorks opened 2 years ago

ZeoWorks commented 2 years ago

Hi, upon attempting to build the .go source, it requests; screenGrabWebRTC.go:23:2: no required module provides package github.com/pion/mediadevices/examples/internal/signal; to add it: go get github.com/pion/mediadevices/examples/internal/signal

Upon running; go get github.com/pion/mediadevices/examples/internal/signal

This error occurs; go: github.com/pion/mediadevices/examples@v0.0.0-20220824115655-3bec69bbf884 requires github.com/pion/mediadevices@v0.0.0: reading github.com/pion/mediadevices/go.mod at revision v0.0.0: unknown revision v0.0.0

wawesomeNOGUI commented 2 years ago

Hi! Sorry I left this repository in a kind of bad state for compiling the code yourself. I just updated it so if you clone the repository you should be able to compile it. Let me know if it works!

ZeoWorks commented 2 years ago

Hi, it now builds and runs correctly but unfortunately there is no video stream upon connecting. :)

wawesomeNOGUI commented 2 years ago

Hi! Yeah I need to check on that error, try scrolling the page and see if the stream starts playing

ZeoWorks commented 2 years ago

Thank you, yes I've tried this however the same issue occurs sir. :)

wawesomeNOGUI commented 2 years ago

Did you change this line in index.html to your IP? https://github.com/wawesomeNOGUI/RemoteDesktopForGaming/blob/54963b441d76912b0821172ad79effcc8efa8625/public/index.html#L128

ZeoWorks commented 2 years ago

Yes sir, Even occurs on the same machine. I'd like to clarify that the previous prebuilt exe had no issues.

wawesomeNOGUI commented 2 years ago

Oh that's good the old exe still works. Is there any error output from the go console or browser console?

ZeoWorks commented 2 years ago

No, none at all. It connects absolutely fine. I think the issue is within the prebuilt x264?

wawesomeNOGUI commented 2 years ago

What system are you running the program on? I built x264 for Windows 64bit

ZeoWorks commented 2 years ago

Windows 10 x64 like yourself

ZeoWorks commented 2 years ago

Does downloading this project fresh and compiling work for you?

wawesomeNOGUI commented 2 years ago

It does, I was setting up a new laptop so I made sure I could clone this repo and compile it there.

wawesomeNOGUI commented 2 years ago

Oh what go/ gcc version are you using?

wawesomeNOGUI commented 2 years ago

Ohhh I am getting an error on my laptop that says GetDIBits failed, I'll look into that

ZeoWorks commented 2 years ago

Yes sir, getting the same error. 2022/09/05 10:30:06 Track (ID: 13503cd6-c517-49a5-8dd0-859f4caae8e4) ended with error: GetDIBits failed

ZeoWorks commented 2 years ago

Just to clarify; if I take out the windows input code and try building on Linux, it works with libx264-dev. Could it be that the issue is appearing due to your build of x264 specifically on Windows?

wawesomeNOGUI commented 2 years ago

Hi! I fixed the error and running on windows works now. For some reason, the screen size was always being passed as 0,0. My fix was to edit github.com/kbinani/screenshot with a new screenshot_windows.go I'll keep looking for a better fix, but that seems to work for now