This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from kasp1/master
New matchmaker queue screen with easy customization
- Loading branch information
Showing
13 changed files
with
119 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
html/custom/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Customizing the Queue UI | ||
|
||
The Matchmaker server allows for custom HTML UI to be displayed. In order to create a custom queue UI template: | ||
|
||
1. Duplicate the `Matchmaker/html/sample` directory as `Matchmaker/html/custom`. | ||
2. Edit `Matchmaker/html/custom/queue/queue.html` as needed. | ||
|
||
It is required to keep the same directory struture and file names for the template (`.html`) files. The Matchmaker server will prefer the `custom` directory over `sample`. The `custom` directory always needs to contain all templates from the `sample` directory. | ||
|
||
The `custom` directory can contain additional files, which may be referenced in the template files with a path relative to `Matchmaker/html/custom`. For example, an image located as `Matchmaker/html/custom/images/1.png` could be referenced as `<img src="/images/1.png" alt="">` in a template (`.html`) file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Pixel Streaming Matchmaker | ||
|
||
Instead of having all users connect to the same stream, you may want each person to end up in their own interactive experiences. To do this, you can run a separate stack of Pixel Streaming components for each user, and direct each user to a separate Signaling and Web Server to start a connection. | ||
|
||
You can set up each stack of Pixel Streaming components on a separate host, or you can put more than one stack on the same host as long as you configure the port settings for the components within each stack so that they all communicate over different ports. See the Pixel Streaming Reference for details on these port settings. | ||
|
||
To help set up this kind of configuration, the Pixel Streaming system can use a **matchmaker** server that tracks which Signaling and Web Servers are available, and whether they are being used by a client connection. | ||
|
||
|
||
## Docs | ||
- [Hosting and Networking Guide](https://docs.unrealengine.com/5.1/en-US/hosting-and-networking-guide-for-pixel-streaming-in-unreal-engine/) | ||
- [Customizing the Queue UI](Docs/Customizing%20the%20Queue%20UI.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Looking for a streaming host...</title> | ||
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon-96x96.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Michroma&family=Montserrat:wght@600&display=swap" rel="stylesheet"> | ||
<link type="text/css" rel="stylesheet" href="queue/styles.css"> | ||
</head> | ||
<body> | ||
<main> | ||
<section> | ||
<img id="logo" src="images/ue-logo.png" alt="Unreal Engine"> | ||
<h1>All Streaming Hosts Busy</h1> | ||
<p>Please wait,</p> | ||
<p>checking all ${cirrusServers.size} hosts again in <span id="countdown">3</span> seconds.</p> | ||
</section> | ||
</main> | ||
|
||
<script type="text/javascript"> | ||
var countdown = document.getElementById("countdown").textContent; | ||
setInterval(function() { | ||
countdown--; | ||
if (countdown == 0) { | ||
window.location.reload(1); | ||
} else { | ||
document.getElementById("countdown").textContent = countdown; | ||
} | ||
}, 1000); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
* { box-sizing: border-box; } | ||
|
||
body { | ||
background-color: black; | ||
color: white; | ||
font-family: 'Montserrat', sans-serif; | ||
margin: 0; | ||
} | ||
|
||
main { | ||
display: flex; | ||
height: 100vh; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
section { | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
font-size: 1.8em; | ||
text-transform: uppercase; | ||
} | ||
|
||
p { | ||
text-align: center; | ||
} | ||
|
||
#logo { | ||
display: inline-block; | ||
height: 20vh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.