Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
"fix": "biome check --write && bun audit fix"
},
"dependencies": {
"@moq/boy": "^0.2.9",
"@moq/lite": "^0.2.4",
"@moq/publish": "^0.2.7",
"@moq/watch": "^0.2.11",
"@moq/boy": "^0.2.10",
"@moq/publish": "^0.2.8",
"@moq/watch": "^0.2.12",
"astro": "^5.18.1",
"highlight.js": "^11.11.1",
"solid-js": "^1.9.12",
Expand Down
7 changes: 3 additions & 4 deletions src/components/watch-embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export default function WatchEmbed() {
</moq-watch>
</moq-watch-ui>`;

const embedJs = `import * as Moq from "@moq/lite";
import * as Watch from "@moq/watch";
const embedJs = `import * as Watch from "@moq/watch";

// A MoQ connection that is automatically re-established on drop.
const connection = new Moq.Connection.Reload({
const connection = new Watch.Lite.Connection.Reload({
url: new URL("${publicUrl}"),
enabled: true,
});
Expand All @@ -35,7 +34,7 @@ const connection = new Moq.Connection.Reload({
const broadcast = new Watch.Broadcast({
connection: connection.established,
enabled: true,
name: Moq.Path.from("${name}"),
name: Watch.Lite.Path.from("${name}"),
});

// Synchronize audio and video playback.
Expand Down
2 changes: 1 addition & 1 deletion src/pages/boy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Click a game to play. Multiple players can play at the same time; anarchy includ
## Features

- 🦀 **Rust**: [moq-boy](https://doc.moq.dev/rs/crate/moq-boy) handles emulation and encoding. [moq-mux](https://doc.moq.dev/rs/crate/moq-mux) slurps in H.264/Opus bitstreams while [moq-lite](https://doc.moq.dev/rs/crate/moq-lite) handles the networking/caching.
- 🌐 **Web**: [@moq/boy](https://doc.moq.dev/js/@moq/boy) is the browser player. [@moq/watch](https://doc.moq.dev/js/@moq/watch) handles decoding/rendering while [@moq/lite](https://doc.moq.dev/js/@moq/lite) handles the networking.
- 🌐 **Web**: [@moq/boy](https://doc.moq.dev/js/@moq/boy) is the browser player. [@moq/watch](https://doc.moq.dev/js/@moq/watch) handles decoding/rendering while [@moq/net](https://doc.moq.dev/js/@moq/net) handles the networking.
- 💤 **On-Demand**: Nothing is emulated or encoded until at least one viewer subscribes (per track). Saves you CPU and bandwidth!
- 🧩 **Extensible**: Player controls and game status are sent as custom tracks (JSON in this case). You can do whatever you want!
- 🌍 **Global CDN**: A generic MoQ CDN routes subscriptions over the backbone. Every client connects to the closest edge node to maximize QoS and minimize latency.
Expand Down
2 changes: 1 addition & 1 deletion src/pages/source.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Web code is written in [Typescript](https://github.com/moq-dev/moq/tree/main/js)

| package | description |
| ------- | ----------- |
| [@moq/lite](https://www.npmjs.com/package/@moq/lite) | A moq-lite client that mirrors the Rust API. You can publish and subscribe to generic tracks. Any media stuff is implemented at a higher layer. |
| [@moq/net](https://www.npmjs.com/package/@moq/net) | A moq-lite client that mirrors the Rust API. You can publish and subscribe to generic tracks. Any media stuff is implemented at a higher layer. |
| [@moq/publish](https://www.npmjs.com/package/@moq/publish) | Publishing library with web components and UI. Provides `<moq-publish>` element and `<moq-publish-ui>` wrapper. |
| [@moq/watch](https://www.npmjs.com/package/@moq/watch) | Watching library with web components and UI. Provides `<moq-watch>` element and `<moq-watch-ui>` wrapper. |

Expand Down
Loading