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.v1describes the content (what). It points to the content, never holding the bytes. It has amedium_kind(such asaudioorvideo), says where the content is (a mount path, a content hash, a stream), and has a modality:play,render,runorsimulate. The modality tells the screen how to present it.core.medium.player.v1describes the player (how). It links amedium_kindto 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:
| Method | For | Support |
|---|---|---|
stream-transport | audio and video, streamed in ranges (HTTP 206) | Supported |
static-render | documents, reports, decks | Not supported |
iframe-embed | sandboxed embedded pages | Not supported |
wasm-app | live apps, games, simulations | Not 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) andcore.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.
Related
- Your library: how content is kept, versioned and found.
- Files: where the bytes are stored.
- Consent: the grants that gate anonymous access.
Your library
Everything you keep in your workspace (documents, data, images, any file) forms a searchable library, not just a folder tree.
api.syncropic.com, managed inference
OpenAI-compatible inference gateway for Syncropel customers. Use any OpenAI SDK with your Syncropel API key: one endpoint, several models, usage records in your own workspace, and quotas that follow your subscription.