Repository navigation
Conversation
Sending to the rig's hub, the button read Connect or Disconnect from whether this phone was streaming. It now follows the hub's report of this phone's feed, like the panel: Connect, Connecting…, Disconnect, Disconnecting…. It can no longer say Connect while the status says the phone is connected.
An owner device gets two screens from the rig panel. Crew: make a helper link (who it is for, how long the link stays open, access until the stream ends, for a time or until removed) or a mod link, share it with the system share sheet or as a code, see open links and end one. A helper still waits for Allow, which is on the panel as its one filled button. Who has access: every device, helper, mod and unused invite with its role, what it may do in a plain sentence built from the requests the hub allows it, how it joined, who gave it and when it ends. Allow, Remove or End now with one confirm (with the standby warning when viewers see that device), Change when it ends, and what happened. Owners are grouped by person; a new co-owner's device is let in only after a second, explicit confirm, also when the hub answers a plain Allow with confirm_needed. The stream can be handed over and taken back, and the list of what happened cleared. Both are read over the phone's own hub connection (access.get and the access.trail event). Only an owner device is offered them; other devices see who helps, by name, and no buttons. While the privacy screen is on, the status and the panel say who asked for it when it wasn't this phone. Move stream to phone is outlined like every move in the shared look; filled is for the decision that waits (Connect, Allow).
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.
I noticed that an owner could only let a helper or a mod in from the command line, and that the phone never said who had hidden the picture or who could reach the stream at all.
What it adds
How
Both screens read the hub's own list over the phone's existing encrypted connection (
access.getand theaccess.trailevent) and draw it with the system's lists, forms, menus and confirmation sheets. Nothing opens a web page. The sentences are built from the requests the hub says a role may make, inMoblin/Hub/HubAccess.swift, with tests. All new words are in one file,Moblin/Hub/HubWords.swift. Only an owner device is offered any of this. Other devices see who helps, by name, and no buttons, and the hub checks every request itself.Sits on #2.
Details
confirm_needed. A refusal is said on its row.OSB_BRAND, fixtures for every state (-HubShowcase), and one real run against a local reference hub: helper link, join, Allow, mod link, the mod's HIDE named on the phone, End now. Not run on a phone.