Skip to content
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

Could games-on-whales support WebRTC to stream to a browser? #78

Open
guozanhua218 opened this issue Jun 8, 2024 · 12 comments
Open

Could games-on-whales support WebRTC to stream to a browser? #78

guozanhua218 opened this issue Jun 8, 2024 · 12 comments
Labels
question Further information is requested

Comments

@guozanhua218
Copy link

No description provided.

@ABeltramo ABeltramo added the question Further information is requested label Jun 8, 2024
@ABeltramo
Copy link
Member

At the moment Wolf only supports Moonlight but, since most of the components that are used here are completely independent it's not too hard to add support for other types of streaming protocols.

Gstreamer (the library that we use in order to create the audio/video pipeline) has great support for WebRTC out of the box. The only real bit missing to make this happening is "just" a proper Web UI and some glue code to expose the client devices (mouse, keyboard, joypads) over the browser and all the way back to the remote Wolf instance.

This is something that I might revisit in future, if anyone wants to give it a shot I'd be happy to help and provide all the relevant information in how to integrate WebRTC (or even better MoQ).

@guozanhua218
Copy link
Author

guozanhua218 commented Jun 9, 2024

At the moment Wolf only supports Moonlight but, since most of the components that are used here are completely independent it's not too hard to add support for other types of streaming protocols.

Gstreamer (the library that we use in order to create the audio/video pipeline) has great support for WebRTC out of the box. The only real bit missing to make this happening is "just" a proper Web UI and some glue code to expose the client devices (mouse, keyboard, joypads) over the browser and all the way back to the remote Wolf instance.

This is something that I might revisit in future, if anyone wants to give it a shot I'd be happy to help and provide all the relevant information in how to integrate WebRTC (or even better MoQ).

Yes, I am interested in this. Can you provide me with more information in how to integrate WebRTC(or MoQ) and then I will try

@ABeltramo
Copy link
Member

Sure, I've put down some basic instructions in a gist here. That should get you started with gst-wayland-display + inputtino so that you'll hopefully end up with something like:

webrtc+inputtino.mp4

I hope this helps as a very basic starting point, let me know how it goes!

@ABeltramo ABeltramo changed the title [Question]Could games-on-whales support webrtc which can support run the game in the browser Could games-on-whales support WebRTC to stream to a browser? Jun 9, 2024
@guozanhua218
Copy link
Author

Current the solution of GOW only support the games in linux platform, can't support window's games?

@ABeltramo
Copy link
Member

Current the solution of GOW only support the games in linux platform, can't support window's games?

Thanks to Steam Proton, we can run most Windows games in Linux!

@guozanhua218

This comment was marked as off-topic.

@guozanhua218

This comment was marked as off-topic.

@zslliu
Copy link

zslliu commented Jun 14, 2024

Sure, I've put down some basic instructions in a gist here. That should get you started with gst-wayland-display + inputtino so that you'll hopefully end up with something like:当然,我在这里列出了一些基本说明。这应该让你从 gst-wayland-display + inputtino 开始,这样你就有希望最终得到类似的结果:

webrtc+inputtino.mp4
I hope this helps as a very basic starting point, let me know how it goes!我希望这能作为一个非常基本的起点有所帮助,让我知道进展如何!

The test connection was successful on an Ubuntu computer, but only a black window could be seen.
2
3
1

@write3371

This comment was marked as spam.

@ehfd

This comment has been minimized.

@ABeltramo
Copy link
Member

So does Kasm and others, this is a different project with a different focus. Besides, spamming your project in all issues is not cool.

@ehfd
Copy link

ehfd commented Jul 10, 2024

Well, Selkies-GStreamer implements exactly the portions of what the issue description does and thus is a reference.

I want more implementations that can be an alternative to noVNC, not less, and Wolf might become one.

You said projects have various different focuses yourself, why should this be "not cool"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants