Skip to content

play: the tab that saves a package draws no player and closes itself when it is saved #104

Done

Description

@alekswebnet

What was found

The owner's ChatGPT runs of 2026-11-24, after #102:

  • One press on Download saves a package with a 230 MB video: a tab of this page opens, fetches the video from the chat, builds the package and saves it. It works.
  • Nothing saves such a package inside the chat's window. The chat's own save takes a file of 8 MB and refuses one of 16 MB; it refuses to download from a web address; and its file store takes no package from a card ("Unsupported file type", for a real one too). A file can only be saved from an address a tab opens, and with no server of ours holding a person's file, that address is this page.
  • So the tab stays, but it reads as being sent to a website: it draws the whole player, and it stays open after the file is saved.

What to change

In the play page (src/h5p/play/), for a tab of its own opened by a link with &save=1:

  1. No player. The stage shows the file coming with its bar ("Getting your video… 96 MB of 230 MB", "Choose it from your computer instead"), then the package being built, then "Your .h5p is saved" with its name and size. The package is built once, not as a preview first.
  2. The tab closes itself five seconds after the save, counted down in the text. The count waits while the page is seen and something else has the keyboard, since a question of the browser's own (where to save, whether to allow it) is then likely open. "Keep this tab open" stops it; then "Play it here" plays the package, and Download saves it again where the browser saved nothing.
  3. An address that cannot be fetched leads to the page's own question for the file, with the reason said.

Framed pages, and a link without save, are unchanged.

Activity

  1. added 2 commits that reference this issue on Nov 24, 2026
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