mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-09 20:17:20 -05:00
190 lines
8.4 KiB
HTML
190 lines
8.4 KiB
HTML
<!doctype html>
|
|
<html lang="en" class="dark">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Our Architecture — Vyla</title>
|
|
<meta name="description"
|
|
content="How Vyla Home, SDK, and Stream API relate, and where each responsibility belongs." />
|
|
<meta name="keywords"
|
|
content="Vyla architecture, Vyla Home, Vyla SDK, Stream API, system design, media stack, deployment patterns, self-hosted media" />
|
|
<link rel="canonical" href="https://vyla.cc/architecture.html" />
|
|
|
|
<!-- Open Graph / Facebook -->
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="https://vyla.cc/architecture.html" />
|
|
<meta property="og:title" content="Our Architecture — Vyla" />
|
|
<meta property="og:description"
|
|
content="How Vyla Home, SDK, and Stream API relate, and where each responsibility belongs." />
|
|
<meta property="og:image" content="https://vyla.cc/assets/images/thumbnail.png" />
|
|
<meta property="og:site_name" content="Vyla" />
|
|
|
|
<!-- Twitter -->
|
|
<meta property="twitter:card" content="summary_large_image" />
|
|
<meta property="twitter:url" content="https://vyla.cc/architecture.html" />
|
|
<meta property="twitter:title" content="Our Architecture — Vyla" />
|
|
<meta property="twitter:description"
|
|
content="How Vyla Home, SDK, and Stream API relate, and where each responsibility belongs." />
|
|
<meta property="twitter:image" content="https://vyla.cc/assets/images/thumbnail.png" />
|
|
<meta property="twitter:site" content="@vylaentertainment" />
|
|
|
|
<!-- Additional SEO -->
|
|
<meta name="robots" content="index, follow" />
|
|
<meta name="author" content="Vyla" />
|
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link rel="stylesheet" href="/assets/base.css" />
|
|
<link rel="stylesheet" href="/assets/highlight.css" />
|
|
<link rel="stylesheet" href="/assets/mintlify-overrides.css" />
|
|
|
|
<!-- JSON-LD Structured Data -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "SoftwareApplication",
|
|
"name": "Our Architecture",
|
|
"description": "How Vyla Home, SDK, and Stream API relate, and where each responsibility belongs.",
|
|
"url": "https://vyla.cc/architecture.html",
|
|
"applicationCategory": "MultimediaApplication",
|
|
"operatingSystem": "Windows, macOS, Linux, Android, Android TV",
|
|
"offers": {
|
|
"@type": "Offer",
|
|
"price": "0",
|
|
"priceCurrency": "USD"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="banner">
|
|
<span>Vyla is self-hosted. Run Vyla Home, embed the SDK, or deploy Stream API on infrastructure you control. Rights
|
|
holders can request source removal — <a href="/misc/dmca">DMCA policy</a>.</span>
|
|
<button id="banner-close" onclick="dismissBanner()" aria-label="Dismiss">✕</button>
|
|
</div>
|
|
|
|
<header id="navbar">
|
|
<div class="nav-top">
|
|
<a class="brand" href="/"><img src="/assets/images/logo.png" alt="Vyla" id="brand-logo" loading="lazy"
|
|
fetchpriority="low"></a>
|
|
<button id="search-trigger" type="button" onclick="openSearch()" aria-label="Search"></button>
|
|
<div class="links">
|
|
<button id="theme-toggle" type="button" onclick="toggleThemeMenu(event)" aria-label="Theme"></button>
|
|
</div>
|
|
</div>
|
|
<nav class="tabs">
|
|
<a class="tab-link" href="/">Vyla</a>
|
|
<a class="tab-link" href="/sdk">SDK</a>
|
|
<a class="tab-link active" href="/stream-api/overview">Stream API</a>
|
|
<a class="tab-link" href="/guides/integrations">Resources</a>
|
|
<a class="tab-link" href="/misc/credit">Misc</a>
|
|
</nav>
|
|
</header>
|
|
<div id="layout">
|
|
<nav id="sidebar">
|
|
<div class="group">
|
|
<p class="group-title">Start here</p>
|
|
<ul>
|
|
<li><a class="active" href="/">Introduction</a></li>
|
|
<li><a class="" href="/architecture">Architecture</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="group">
|
|
<p class="group-title">Products</p>
|
|
<ul>
|
|
<li><a class="" href="/home">Home</a></li>
|
|
<li><a class="" href="/go">Go</a></li>
|
|
<li><a class="" href="/tv">Tv</a></li>
|
|
<li><a class="" href="/player">Player</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="group">
|
|
<p class="group-title">Concepts</p>
|
|
<ul>
|
|
<li><a class="" href="/concepts/providers">Providers</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<div id="content-col">
|
|
<main class="prose">
|
|
<h1>Our Architecture</h1>
|
|
<p class="page-description">How Vyla Home, SDK, and Stream API relate, and where each responsibility belongs.
|
|
</p>
|
|
<h2 id="the-vyla-stack">The Vyla stack</h2>
|
|
<p>Vyla separates local application management, provider resolution, and client-facing delivery. That separation
|
|
lets each layer be used on its own while keeping the integration points clear.</p>
|
|
<h3 id="vyla-home">Vyla Home</h3>
|
|
<p>Home is responsible for a desktop session: local configuration, encrypted local credentials, update
|
|
coordination, managed processes, and the embedded interface. It is the right layer for launching and
|
|
supervising a local experience.</p>
|
|
<h3 id="vyla-sdk">Vyla SDK</h3>
|
|
<p>The SDK contains the provider-facing work: source configuration, stream resolution, subtitle retrieval,
|
|
download lookup, and health probes. It is the right layer when your Node.js application needs to decide how
|
|
requests are authorized, cached, selected, and returned.</p>
|
|
<h3 id="stream-api">Stream API</h3>
|
|
<p>Stream API wraps the SDK in a self-hosted HTTP service. Its movie and TV endpoints use Server-Sent Events so
|
|
metadata can arrive first and usable sources can be delivered progressively. It also provides subtitle,
|
|
download, health, test, and optional debug routes.</p>
|
|
<h2 id="common-deployment-patterns">Common deployment patterns</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Pattern</th>
|
|
<th>Best for</th>
|
|
<th>Key decision</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Home only</td>
|
|
<td>a managed local desktop experience</td>
|
|
<td>Home owns the lifecycle of bundled local services</td>
|
|
</tr>
|
|
<tr>
|
|
<td>App + SDK</td>
|
|
<td>a Node.js backend with a custom product API</td>
|
|
<td>your app owns authentication, policy, and response design</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Player + Stream API</td>
|
|
<td>browser or mobile clients that need a stable HTTP contract</td>
|
|
<td>deploy Stream API and place it behind TLS when exposed remotely</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Home + Stream API</td>
|
|
<td>a local player backed by a local service</td>
|
|
<td>keep the service bound and access-controlled for the local environment</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h2 id="data-flow-for-playback">Data flow for playback</h2>
|
|
<ol>
|
|
<li>A client provides a TMDB media ID (plus season and episode for TV).</li>
|
|
<li>Stream API, or your own SDK-based backend, asks active providers for candidates.</li>
|
|
<li>Candidates are checked and successful sources are returned progressively.</li>
|
|
<li>The player begins with the first compatible candidate and keeps later candidates as fallbacks.</li>
|
|
<li>Subtitle and download lookups are separate operations; neither should block first playback.</li>
|
|
</ol>
|
|
<p>Provider availability varies by source and network environment. Build the player experience around fallbacks
|
|
and empty-result states, as described in <a href="/guides/error-handling">Error handling</a>.</p>
|
|
</main>
|
|
<aside id="toc">
|
|
<p class="toc-title">On this page</p>
|
|
<ul>
|
|
<li><a href="#the-vyla-stack">The Vyla stack</a></li>
|
|
<li><a href="#common-deployment-patterns">Common deployment patterns</a></li>
|
|
<li><a href="#data-flow-for-playback">Data flow for playback</a></li>
|
|
</ul>
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
<footer id="site-footer">
|
|
<a href="https://discord.gg/5eqRhKeywG" target="_blank" rel="noopener">Discord</a>
|
|
<a href="https://gitlab.com/vyla-entertainment/" target="_blank" rel="noopener">GitLab</a>
|
|
</footer>
|
|
<script src="/assets/app.js"></script>
|
|
</body>
|
|
|
|
</html> |