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
32 changes: 0 additions & 32 deletions doc/typescript/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,38 +121,6 @@ for await (const group of chatTrack) {
</html>
```

### Video Conference

```html
<!DOCTYPE html>
<html>
<head>
<script type="module">
import "@moq/hang/meet/element";
</script>
<style>
hang-meet {
display: block;
width: 100%;
height: 100vh;
}
</style>
</head>
<body>
<hang-meet
url="https://relay.example.com/anon"
path="conference/room-123"
audio video controls>
<!-- Publish your own camera -->
<hang-publish
path="conference/room-123/alice"
audio video>
</hang-publish>
</hang-meet>
</body>
</html>
```

### Dynamic Controls

```html
Expand Down
14 changes: 0 additions & 14 deletions doc/typescript/hang.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,6 @@ The fastest way to add MoQ to your web page. See [Web Components](/typescript/we
</hang-watch>
```

### Video Conferencing

```html
<script type="module">
import "@moq/hang/meet/element";
</script>

<hang-meet
url="https://relay.example.com/anon"
path="room123"
audio video controls>
</hang-meet>
```

[Learn more about Web Components →](/typescript/web-components)

## JavaScript API
Expand Down
31 changes: 1 addition & 30 deletions doc/typescript/web-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,35 +74,6 @@ Subscribe to and render a MoQ broadcast.
</hang-watch>
```

### `<hang-meet>`

Video conferencing component that discovers and renders multiple broadcasts.

**Attributes:**
- `url` (required) - Relay server URL
- `path` (required) - Room path prefix
- `audio` - Enable audio (boolean)
- `video` - Enable video (boolean)
- `controls` - Show controls (boolean)

**Example:**

```html
<script type="module">
import "@moq/hang/meet/element";
</script>

<hang-meet
url="https://relay.example.com/anon"
path="room123"
audio video controls>
<!-- Optional: add local publish component -->
<hang-publish path="room123/me" audio video></hang-publish>
</hang-meet>
```

This discovers any broadcasts starting with `room123/` and renders them in a grid.

### `<hang-support>`

Display browser support information.
Expand Down Expand Up @@ -268,7 +239,7 @@ import "@moq/hang";
Full TypeScript support with type definitions:

```typescript
import type { HangWatch, HangPublish, HangMeet } from "@moq/hang";
import type { HangWatch, HangPublish } from "@moq/hang";

const watch: HangWatch = document.querySelector("hang-watch")!;
const publish: HangPublish = document.querySelector("hang-publish")!;
Expand Down
Loading