diff --git a/README.md b/README.md index b92247f..8b09c6a 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ Keep an eye on the console output for anything weird. 1. Run `dji-moonlight-gui.exe`. 2. Pair Moonlight with your streaming software by pressing _Pair_. The PIN will be displayed in the console. This only needs to be done once. + + _GeForce Experience_: A popup will appear on your PC asking you to confirm + the pin. + + _Sunshine_: You will need to go to the _Settings_ page in your browser and + enter the pin. 3. Press _Refresh_ to list your games. 4. Select a game and press _Stream_. diff --git a/assets/index.html b/assets/index.html index 39fa60f..e9d9a29 100644 --- a/assets/index.html +++ b/assets/index.html @@ -22,19 +22,27 @@

Stream

- +
- + diff --git a/assets/style.css b/assets/style.css index d2e962e..c5844e7 100644 --- a/assets/style.css +++ b/assets/style.css @@ -173,6 +173,13 @@ label { color: var(--main-color);; } +label span.details { + font-size: 0.8rem; + font-style: italic; + color: #aaa; + margin-left: 0.5rem; +} + input { width: 100%; outline: none; diff --git a/main.go b/main.go index 63c9ac2..d9e6d76 100644 --- a/main.go +++ b/main.go @@ -39,6 +39,7 @@ func (m *MoonlightManager) GetGames() ([]string, error) { cmd.Args = append(cmd.Args, "list") m.RunningStateFunc(true) + m.ConsoleOutputFunc(fmt.Sprintf("> %s", strings.Join(cmd.Args, " "))) out, _ := cmd.CombinedOutput() outString := strings.TrimSpace(string(out)) @@ -84,6 +85,7 @@ func (m *MoonlightManager) Pair() error { reader := bufio.NewReader(combined) m.RunningStateFunc(true) + m.ConsoleOutputFunc(fmt.Sprintf("> %s", strings.Join(cmd.Args, " "))) cmd.Start() m.RunningCmdLock.Unlock() @@ -121,6 +123,7 @@ func (m *MoonlightManager) Unpair() error { cmd.Args = append(cmd.Args, "unpair") m.RunningStateFunc(true) + m.ConsoleOutputFunc(fmt.Sprintf("> %s", strings.Join(cmd.Args, " "))) out, _ := cmd.CombinedOutput() m.ConsoleOutputFunc(string(out)) @@ -143,6 +146,7 @@ func (m *MoonlightManager) Quit() error { cmd.Args = append(cmd.Args, "quit") m.RunningStateFunc(true) + m.ConsoleOutputFunc(fmt.Sprintf("> %s", strings.Join(cmd.Args, " "))) out, _ := cmd.CombinedOutput() m.ConsoleOutputFunc(string(out)) diff --git a/media/screenshot.png b/media/screenshot.png index 5cffd6f..b2212cb 100644 Binary files a/media/screenshot.png and b/media/screenshot.png differ