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
4 changes: 2 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId = "app.efir.android"
minSdk = 26
targetSdk = 35
versionCode = 7
versionName = "1.4.0"
versionCode = 8
versionName = "1.4.1"
testInstrumentationRunner = "app.efir.android.EfirTestRunner"
}
sourceSets["main"].assets.srcDir(layout.buildDirectory.dir("generated/assets"))
Expand Down
2 changes: 1 addition & 1 deletion desktop/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "efir-desktop"
version = "1.4.0"
version = "1.4.1"
edition = "2021"
license = "MIT"
description = "Free teleprompter with remote control over local Wi-Fi"
Expand Down
4 changes: 2 additions & 2 deletions desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "efir-desktop",
"version": "1.4.0",
"version": "1.4.1",
"private": true,
"scripts": {
"dev": "tauri dev",
Expand Down
2 changes: 1 addition & 1 deletion desktop/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Efir",
"version": "1.4.0",
"version": "1.4.1",
"identifier": "app.efir.desktop",
"build": {
"frontendDist": "bootstrap"
Expand Down
20 changes: 17 additions & 3 deletions docs/displays.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ messages over the existing WebRTC transport.
**Leading teleprompter** chooses the screen that owns the scrolling position and
pace. Other screens follow its passage, including their own line wrapping. The
protocol carries the words at adjacent source line starts and progress between
them; followers interpolate those word positions in their layout. Matching
viewports and layout settings preserve exact pixels. Different font sizes or
margins use the word anchor even when the screen dimensions are identical.
them; followers and controller previews interpolate those word positions in
their layout. Exact pixels are reused only when the viewport, settings and
measured word positions match. Differences in browser font metrics and line
wrapping use the word anchor even when the screen dimensions are identical.

The **Synchronize screens** button (two curved arrows below the preview) asks
the leading screen for a fresh measurement and aligns the controller and other
screens to its current passage. It preserves playback, speed and voice mode.
Confirmation appears after the connected screens acknowledge synchronization;
if a screen cannot respond, check the connection and retry.

Play/pause, speed, section jumps, pedal scrolling and seeking from any reader
control the shared session. The controller resolves sections once against the
Expand Down Expand Up @@ -58,6 +65,13 @@ horizontal/vertical mirroring. Omitted overrides inherit the shared controller
settings. **Use shared settings** removes overrides while retaining the name.
An explicit left/right margin takes precedence over the symmetric side margin.

Shared **Advanced → Margins → Left margin / Right margin** controls adjust the
two sides independently, as percentages of screen width. They are saved in
settings profiles and portable backups. Initially both inherit **Side margins**;
double-click a side's displayed value to restore inheritance. A display's own
symmetric margin overrides the shared horizontal margins, and its explicit
left/right overrides take precedence over that.

The reader URL includes `?screen=…`, a stable display identifier distinct from
its network connection ID. Keep/bookmark this link to reopen the same display
profile. Profiles are saved on the reader and operator, survive reload and are
Expand Down
7 changes: 5 additions & 2 deletions docs/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ A reader greeting includes viewport, script version (`sid`), `session` and
receive targeted `settings`, `script`/`scriptPart`, then `session` with
`to/tag/state`. They wait for the complete matching script before restoring.
`state.sync` acknowledges the tag, blocking stale preview state until then.
Equal viewports use exact pixels; different viewports use word and line offsets.
Playback, countdown, speed and voice index resume.
Equal viewports, layout settings and measured geometry (`geometry`) use exact
pixels; otherwise readers and previews use word and line anchors. Playback,
countdown, speed and voice index resume. A targeted `resync` request obtains a
fresh `resynced` snapshot from the leading reader; the controller restores its
preview and sends tagged sessions to followers, waiting for their acknowledgments.

Reader taps apply play/pause and send that absolute command to the controller,
so multiple controllers cannot toggle it twice. Quick mirror changes
Expand Down
53 changes: 53 additions & 0 deletions docs/releases/1.4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Efir 1.4.1

## What's changed

- Fix accumulated reading-position drift between phones and controller previews
when browsers wrap a long script differently. Exact pixel positions are reused
only when measured text geometry matches; other layouts follow word anchors.
- Add **Synchronize screens**, a two-arrow button below the preview. It aligns
the controller and connected screens to the leading reader's current passage
without restarting playback. Failed synchronization can be retried.
- Add independent **Left margin** and **Right margin** controls under
**Advanced → Margins**. Settings profiles and backups retain them. Initially
each side inherits **Side margins**; double-click its value to restore that
behavior. Individual screen overrides continue to take precedence.

## Verification

The reported long-script drift was reproduced between Chromium and WebKit.
Regression checks cover late-script seeking, three-screen playback, manual
synchronization while reading, lost replies and retry, and margin persistence.
Existing browser, display, remote, performance and relay checks passed; all
2,100 responsive layout checks passed across six languages. These checks use
isolated browser profiles and the production Swift relay; they do not replace
testing on physical phones.

## Downloads and installation

| Platform | File | Requirements |
| --- | --- | --- |
| macOS | `Efir-macOS.zip` | Apple Silicon or Intel, macOS 14+ |
| Windows | `Efir-Windows-x64.zip` | Windows 10/11 x64, Microsoft WebView2 Runtime |
| Linux x64 | `Efir-Linux-x64.deb` | Ubuntu 24.04+ or compatible dependencies |
| Linux ARM64 | `Efir-Linux-arm64.deb` | Ubuntu 24.04+ or compatible dependencies |
| Android | `Efir-Android.apk` | Android 8+ |

Extract the entire Windows folder before launching `efir.exe`; keep `web/`,
`speech/` and the accompanying DLLs together. An NSIS installer is also provided.
Offline speech language models remain separate downloads.

The macOS app is ad hoc signed and not notarized. Follow the documented
[macOS opening steps](../macos-distribution.md). Windows packages do not have
an Authenticode signature.

Android 1.4.1 uses a new release signing certificate. Before upgrading an older
installation, export your scripts and settings, uninstall the old app, install
1.4.1 and restore the export. Future releases will reuse the new key, stored
outside the source checkout.

Android certificate SHA-256:
`e85654fe8944ac49c6cc1d6e919106b76a1ae1e65044fe9a43225610050cd3bd`.

`Efir-1.4.1-SHA256.txt` lists package checksums. Update the host application and
reload the connected reader pages so that the session uses the same version.
4 changes: 2 additions & 2 deletions mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.0</string>
<string>1.4.1</string>
<key>CFBundleVersion</key>
<string>7</string>
<string>8</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsInWebContent</key>
Expand Down
4 changes: 2 additions & 2 deletions mac/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ targets:
path: Info.plist
properties:
CFBundleDisplayName: Эфир
CFBundleShortVersionString: '1.4.0'
CFBundleVersion: '7'
CFBundleShortVersionString: '1.4.1'
CFBundleVersion: '8'
CFBundleDevelopmentRegion: ru
CFBundleLocalizations: ['ru', 'en', 'es', 'zh-Hans', 'hi', 'ar']
NSLocalNetworkUsageDescription: Эфир раздаёт суфлёр устройствам в вашей локальной сети.
Expand Down
4 changes: 3 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In another terminal:

```sh
npm install --prefix work/testing playwright peer@1.0.2
work/testing/node_modules/.bin/playwright install chromium
work/testing/node_modules/.bin/playwright install chromium webkit
EFIR_URL=http://localhost:18765 node tests/relay.mjs
EFIR_URL=http://localhost:18765 EFIR_LAN_URL=http://YOUR_WIFI_IP:18765 \
node tests/browser.mjs
Expand All @@ -29,6 +29,7 @@ EFIR_URL=http://localhost:18765 EFIR_LAN_URL=http://YOUR_WIFI_IP:18765 \
EFIR_URL=http://localhost:18765 node tests/layout.mjs
EFIR_URL=http://localhost:18765 node tests/remotes.mjs
EFIR_URL=http://localhost:18765 node tests/displays.mjs
EFIR_URL=http://localhost:18765 node tests/synchronization.mjs
node tests/hosting.mjs
```

Expand All @@ -42,6 +43,7 @@ On macOS, `http://0.0.0.0:18765` can provide an insecure Chromium context for
| `hosting.mjs` | Static hosting without marker, real PeerJS broker, delayed cross-profile WebRTC, established link during broker loss |
| `performance.mjs` | Three-screen frame, storage, transport and main-thread activity; hidden Gamepad and reduced-motion/offscreen demo lifecycle |
| `displays.mjs` | Three readers with different wraps, format shading, actual preview geometry, targeted calibration, duplicate links, seeking, reload, rotation, leader failover and stale preview recovery |
| `synchronization.mjs` | Chromium/WebKit passage alignment with accumulated layout differences, manual synchronization, independent shared margins and profile/backup persistence; optionally set `EFIR_SCRIPT` to a local TXT file |
| `remotes.mjs` | Held key edges, modified keys, button learning, saved mappings, editing/dialog guards, nudge release, browser Gamepad signals |
| `layout.mjs` | Six UI languages, light/dark, narrow/landscape/tablet/desktop, dialogs, icon-only exit and fullscreen labels |

Expand Down
2 changes: 1 addition & 1 deletion tests/RustServerHarness/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading