Skip to content
heavenly-techPublic

About

Alongside file presenting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alongside

A video call (Jitsi) paired with a shared PDF viewer. The presenter's page turns broadcast live to everyone; participants can follow along or break off and browse at their own pace, with a one-click way to snap back.

Runs entirely as static files — no backend, no database. GitHub Pages is enough to host it.

How it works

  • Video: embedded via the Jitsi Meet IFrame API against the free public server meet.jit.si. No account needed.
  • Document: rendered client-side with PDF.js, reading the PDF straight from the repo.
  • Sync: Jitsi's IFrame API includes a peer-to-peer text-messaging command (sendEndpointTextMessage). Whenever the presenter changes page, that message ships {page: N} to everyone in the call — no server required to relay it. Participants have a "Follow presenter" checkbox; switching it off lets them browse independently.

1. Get your file into the repo

Only PDFs render natively in a browser. If you're working from a .pptx:

  • PowerPoint / Keynote / Google Slides: use "Export" or "Save As" → PDF.
  • Command line (LibreOffice installed):
    soffice --headless --convert-to pdf your-deck.pptx

Drop the resulting PDF into docs/, then add an entry for it in index.html so it shows up in the dropdown:

const AVAILABLE_DOCS = [
  { label: "Q3 planning deck", path: "docs/q3-planning.pdf" },
];

2. Deploy to GitHub Pages

git init
git add .
git commit -m "Initial synced viewer"
git branch -M main
git remote add origin https://github.com/<you>/<repo>.git
git push -u origin main

Then in the repo on GitHub: Settings → Pages → Source → Deploy from a branch → main / / (root). Save, wait a minute, and your site is live at https://<you>.github.io/<repo>/.

3. Run a session

  1. Presenter opens the site, types a session name (e.g. standup), picks Presenter, selects the doc, and clicks Enter session.
  2. Send participants the same URL with role=participant instead — easiest way is to share https://<you>.github.io/<repo>/index.html, have them type the same session name, and pick Participant.
  3. Presenter's page navigation drives everyone whose "Follow presenter" is on.

Notes and limits

  • meet.jit.si is a shared public server — fine for casual/internal use, but for anything sensitive or high-traffic, consider self-hosting Jitsi and swapping the domain string in app.js (new JitsiMeetExternalAPI('meet.jit.si', ...)).
  • There's no session persistence: if everyone leaves, the "current page" state resets to whatever the presenter opens with next time. That's fine for live sessions; it's not a durable record.
  • Large PDFs (lots of embedded images) can be slow to render at first load — PDF.js renders on the fly rather than pre-rendering.
  • The presenter role is just a URL parameter, not authenticated — anyone who opens the link with role=presenter can drive the sync. Fine for trusted teams; don't rely on it for anything adversarial.

About

Alongside file presenting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages