LorenzCK / OnTopReplica

A real-time always-on-top “replica” of a window of your choice (on Windows).
Other
2.5k stars 277 forks source link

Using Discord to Stream #129

Open jozephbrasil opened 2 years ago

jozephbrasil commented 2 years ago

Is there a way to select OnTopReplica window to share it as app on Discord? When I click in share it using any stream app that enable you to select a program to share, just OnTopReplica window just is not available to be selected. Anyone knows a way to bypass this?

LorenzCK commented 2 years ago

Hello @jozephbrasil, OnTopReplica is not shown because it is a so-called "tool window". Discord (and most screen/window sharing applications) only show top level application windows as sources. Anyway, even if OnTopReplica was selectable, Discord wouldn't be able to stream anything from it because the cloned window is a DWM overlay over OnTopReplica and it is not contained within the OnTopReplica window. I'm guessing you'd like to use OnTopReplica to crop/resize parts of another window and then stream it to Discord, but I'm afraid this cannot be done. 😞 You could try with something like OBS: OBS should be able to “capture” parts of another window and then you should be able to stream the OBS preview.

ryantheleach commented 2 years ago

@LorenzCK Typically you would stream the OBS Projector in that situation, but it would have the side effect of not capturing any audio the application would be emitting.

I believe this would be true anyway if OnTopReplica acted in the way JozephBrasil expected.

pol-rivero commented 1 year ago

I had exactly this problem some time ago, so I made p-rivero/DiscordAudioStream. You can use it to stream a window or a screen region. If you need more complex effects, you can use OBS and then share the Projector window using DiscordAudioStream to add the audio.