You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
play: one press to download a package too big for the chat's save, in a tab that fetches the video itself #102
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/):
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.
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.
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.
Activity
fix(play): the saving tab is opened only where every file is at an ad…
Merge pull request #103 from missing-elements/feat/play-save-in-tab