Add per-device mirror mode to the Remote teleprompter view - #97
Merged
Conversation
Remote viewers on teleprompter glass need the script flipped horizontally. Adds a Mirror control to the remote view that flips the reading surface with scaleX(-1). It sits above every screen, including the waiting screen, so a rig can be set up before the prompter starts, and it stays unflipped itself so it remains legible and tappable. The choice is stored per browser in localStorage, and ?mirror=1 / ?mirror=0 presets a device from a QR code or bookmark. Builds on the approach in f#52 by voicaandrei. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remote viewers reading off teleprompter glass need the script flipped left-to-right. This adds a Mirror control to the Remote browser view that flips the reading surface with
scaleX(-1).localStorage.?mirror=1/?mirror=0presets a device from a QR code or bookmark, and persists that choice.Remote browser output only. The native external-display Mirror mode is untouched.
Credit
This builds on the approach in #52 by @voicaandrei, which has been open since May without review. Two differences: that PR flips
#mainas a whole, which mirrors its own Mirror button and makes the label unreadable; and it places the control inside the bottom bar, which only exists once a reading session is active, so there is nothing to tap on the waiting screen. Happy to close this in favour of #52 with those two fixes applied there instead — whichever the maintainer prefers.Testing
BrowserServer.generateHTMLand drove it against a mock feed plus a live Textream session: toggle, persistence across reloads, both URL overrides, desktop and mobile layouts.