Skip to content

Teletext page is a load option, so it cannot be changed while a channel plays #364

Closed

Description

@superuser404notfound

LoadOptions.teletextPage reaches the engine at load, is stored as teletextPageForSubtitleTap and handed to EmbeddedSubtitleDecoder when that decoder is constructed. The page is therefore fixed for the life of the decoder, and a decoder only exists once a subtitle track is selected.

Two consequences:

  • A host cannot offer the page as an in-player choice, only as a setting that takes effect on the next load. Sodalite exposes it exactly that way today.
  • On a channel where the automatic txt_page=subtitle misses the right page, the viewer has to leave the channel, change a setting and come back.

What it would take: a settable page that rebuilds the drain decoder for the active track rather than only applying at construction. The drain path already replaces decoders on a target change (clearSubtitleDrainTarget nils them), so the mechanism exists; the page just has to travel with it.

Low priority: it only affects real transport streams carrying Teletext, and only when the automatic page selection misses.

Activity

  1. superuser404notfound commented on Aug 12, 2026

    @superuser404notfound
    OwnerAuthor

    Built and merged to main (78ff2d7), released in a later version.

    setTeletextPage(_:) applies in the three places a session can be reading teletext from:

    • the load options replayed on internal reopens, so an audio switch or a background reload does not quietly restore the load-time page,
    • the decoder factories of both playback hosts,
    • the drain decoder of every channel currently showing a teletext track, dropped along with its cursor so the next tick re-decodes the window around the playhead exactly as a fresh selection does.

    A channel showing another codec is left alone; rebuilding it would blank its overlay for a change that cannot affect it. That gate is the one place a silent failure could live, so the engine states which side it took: re-decoding N channel(s) or no active teletext track to re-decode. teletextPage reads the page in force.

    aetherctl play gains --teletext-page N and --switch-teletext-page <page|auto>[@ms], the second defaulting to +20 s so the change lands on a channel that already has a track showing.

    Leaving this open for one reason: real teletext needs a broadcast transport stream, and ffmpeg cannot synthesise one, so what is verified is the wiring, the gate and the no-op statement, not the decode. The claim that the rebuilt decoder actually renders the new page rests on it being the same construction path a fresh selection takes. A run against a live DVB channel closes it.

  2. superuser404notfound commented on Sep 10, 2026

    @superuser404notfound
    OwnerAuthor

    Closing this one.

    The setter shipped and is exercised on all three paths a session can be reading teletext from, and the gate plus the no-op statement are covered by tests. The only thing this thread was still carrying is a run against a live DVB channel, because ffmpeg cannot synthesise a broadcast transport stream and the decode itself therefore has no synthetic witness. That is a check on this side rather than an open question about the engine, so it does not need an issue to sit in.

    If a real teletext channel ever keeps showing the old page after setTeletextPage(_:), that is worth a fresh report with the .session capture, since the line already names which branch it took.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions