Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions service/internal/sharerelay/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
body { display: flex; flex-direction: column; }
header[hidden] { display: none; }
/* The camera's page asked for the whole screen (window.__share.fill). */
body.share-fill > header { display: none; }
/* One row, always: every pixel this bar takes is a pixel off the picture,
and on a phone the wrapped version was three rows -- a fifth of the
screen -- above the camera's own navbar. Narrow, the name gives way
Expand Down
3 changes: 3 additions & 0 deletions service/internal/sharerelay/static/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ async function main() {
window.__share = {
openWebSocket: (path, protocols, h) => openWebSocket(tunnel, path, protocols, h), welcome,
ice: await iceServers.catch(() => []), trace: (what, detail) => trace('camera page: ' + what, detail),
// The camera's Live page filling the screen where the browser has no
// fullscreen for it (an iPhone): this page's bar steps aside too.
fill: (on) => { document.body.classList.toggle('share-fill', !!on); },
};
let player = null;
tunnel.onclose = (why) => {
Expand Down
Loading