SSyncropel Docs

Media that plays

Audio and video are content your workspace presents and you interact with. Adding a new kind of playable media is a matter of writing a record.

Your library is about keeping things. This page is about playing them: how a track sounds or a video plays. Syncropel treats audio and video as one thing: content that is presented to you and that you interact with.

One idea, not one player per format

Many systems ship a separate player for each content type, so a new format means new code. In Syncropel, a new kind of playable media is a record you write, not a player you build.

Two records describe any medium:

  • core.medium.v1 describes the content (what). It points to the content, never holding the bytes. It has a medium_kind (such as audio or video), says where the content is (a mount path, a content hash, a stream), and has a modality: play, render, run or simulate. The modality tells the screen how to present it.
  • core.medium.player.v1 describes the player (how). It links a medium_kind to a playback method and says how to get the content. Adding a media type means writing one of these.

Visibility comes from the thread

A medium never says who can see it. That comes from the thread it lives on, the consent grant over that thread, and, for anonymous playback, a short-lived read token. The same record plays for its owner and, when a public grant exists, for a stranger.

Playback methods

The playback methods a player can use are a small fixed set:

MethodForSupport
stream-transportaudio and video, streamed in ranges (HTTP 206)Supported
static-renderdocuments, reports, decksNot supported
iframe-embedsandboxed embedded pagesNot supported
wasm-applive apps, games, simulationsNot supported

Only audio and video (stream-transport) play. The other modalities (render, run, simulate) are named but have no playback.

Playing it for you and for a stranger

For the owner, a medium plays inside your library like any other content. A public link can also make a medium play for someone with no account, using:

GET /v1/public/medium/resolve?thread=&ref=&kind=

This needs no login, but it is gated by a public consent grant. The requested ref must be referenced by a record on the granted thread, so a grant over one thread can't be used to reach other files. It returns the descriptor, a short-lived read token and a read URL. The player streams the bytes in ranges and asks again when the token expires. Revoking the grant ends every outstanding token at once.

This is what makes a shared link play rather than just describe. The read token exists because media players can't send an Authorization header. It is a credential, not a record.

In short

  • Audio and video are content presented to you and resolved from records when played.
  • Two records describe any medium: core.medium.v1 (what) and core.medium.player.v1 (how).
  • stream-transport (audio and video) is the only supported playback method.
  • Anonymous playback lets a public link play with no account, gated by a consent grant.
  • Your library: how content is kept, versioned and found.
  • Files: where the bytes are stored.
  • Consent: the grants that gate anonymous access.

On this page