Web build of the player #69

Open
opened 2026-11-03 14:05:15 +00:00 by Weissstreifen · 0 comments

The player in the browser, so a scene or a deck can be watched and presented without installing daviz.

  • Built with parin_kit's tools/build_web.sh (LDC for wasm32-emscripten plus emcc) into web/, as
    dub run -- ... is built natively: tools/build_web_player.sh.
  • A web version leaves out what a browser can't do or doesn't need: the editor, the export, ffmpeg, opening a text
    editor, file watching.
  • No exceptions on the web (a throw stops the program there), so the paths a scene goes through while loading
    (numbers, CSV, the world map) must not throw: parsing numbers without std.conv.to.
  • The page around it starts the player with the files of a show written into the virtual file system, and the
    arguments (/show/quarterly.deck), see the bundle issue.
  • Talks to the page through two small hooks: the player reports where it is (slide, stop) and takes commands
    (go to slide 3, stop 1), which the live presenting uses.
The player in the browser, so a scene or a deck can be watched and presented without installing daviz. - Built with parin_kit's `tools/build_web.sh` (LDC for `wasm32-emscripten` plus emcc) into `web/`, as `dub run -- ...` is built natively: `tools/build_web_player.sh`. - A `web` version leaves out what a browser can't do or doesn't need: the editor, the export, ffmpeg, opening a text editor, file watching. - No exceptions on the web (a throw stops the program there), so the paths a scene goes through while loading (numbers, CSV, the world map) must not throw: parsing numbers without `std.conv.to`. - The page around it starts the player with the files of a show written into the virtual file system, and the arguments (`/show/quarterly.deck`), see the bundle issue. - Talks to the page through two small hooks: the player reports where it is (slide, stop) and takes commands (go to slide 3, stop 1), which the live presenting uses.
Weissstreifen added this to the M12 Web milestone 2026-11-03 14:05:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#69
No description provided.