Skip to content

Boards 0.3.0: Shared audio and video, live drags and smaller edits

Boards 0.3.0 lets people on a PhoenixKit whiteboard play a recording together, watch each other move shapes as it happens, and edit large boards without sending the whole board on every change.

Audio and video, played together

Drop or paste an audio or video file and it becomes a player on the board. Whoever presses play, pauses or scrubs drives it for everyone on the board, so a teacher and their students hear the same moment. Anyone may control it, and the last command wins. Someone who joins while it plays is brought to the same point. Uploads now accept audio and video next to images, up to 256 MB, and show their progress on the placeholder.

See what others are doing

A shape someone drags now moves on everyone’s screen while it is dragged, not only when it is dropped. Each person’s cursor is drawn as the tool they hold, in their colour. Cursors move smoothly and stay on the spot they point at while you pan or zoom.

Cursors and drags can use a channel of their own. It is optional: add one line to your endpoint, socket "/phoenix_kit/board", PhoenixKitBoards.Web.BoardSocket, websocket: true. Without it, cursors go through the board page as before and live drags don’t show.

Faster editing

  • Every edit sent the whole board down the socket, which on a board with images was megabytes per edit. That made cursors choppy and late, and could drop the connection. The board is now sent once, when it opens.
  • An image pasted before uploads worked was resent on every edit. It now moves to storage the first time, once per image.
  • A peer’s edit no longer makes the whole board flash, and shapes no longer jump to the front for some viewers.
  • Leaving a board closes its connection and stops its drawing loop.

Upgrading

Boards 0.3 needs PhoenixKit 1.7.189 or later and fresco and etcher 0.11. There are no migrations. Add the socket line above to your endpoint for live drags and the separate cursor channel.

 

 


Boards 0.3.0. Install or update: {:phoenix_kit_boards, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.