Skip to content

play: one press to download a package too big for the chat's save, in a tab that fetches the video itself #102

Done

Description

@alekswebnet

What was found

The owner's ChatGPT run of 2026-11-24, after #100:

  • A package with a 230 MB video is fetched and built in the chat, and saved from the browser's menu on Download (right-click, "Open link in new tab"). It works, but it is two steps and has to be explained. The owner: "right-click can be replaced by button click, I need one click to download."
  • ChatGPT's own save refused a 128 MB and a 256 MB test file within a second each. So a big package cannot be handed to the chat.
  • ChatGPT opens a web address for the card on a press ("Open in the build page" now works), but not a link to a file held in the browser.
  • The chat's file storage answers a request from any site (Access-Control-Allow-Origin: *, with content-length exposed), so a page of this site in a tab of its own can fetch the attached video from the address the chat gave.

A package built inside the card cannot be passed to a tab: the browser keeps a framed page's storage apart from the same site's in a tab. But the tab can build it again from the same two things the card had, the source and the video's address.

What to change

In the play page (src/h5p/play/):

  1. A play link can carry addresses and a wish to save. Beside #source=: &links= (the files' addresses by name, as the framing page gives them) and &save=1. The page plays from the addresses, and with save it fetches the files itself, shows them coming, builds the package and saves it, with no press. Both are taken out of the address bar once read: an address of a person's file is not left in the history.
  2. A tab of its own fetches the files itself. Download of an activity that plays from an address, with no framing page to ask, fetches from the address.
  3. Inside a chat, one press. Where the framing page saves files and opens links, and says a video weighs more than it saves: Download hands it such a link to open, at once, and says so under the stage. The tab does the rest.
  4. The sizes beside links come back for this (play: inside a chat, a package too big for the chat's save cannot be downloaded without leaving it, and links open nothing on a press #100 took them out).
  5. The right-click hint stays for what is left: a package whose size was not known before it was built, and a save the chat refused.

Not in this issue

  • The most a chat's save takes: still to be measured in the card.

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