Skip to content

Commit fab7b15

Browse files
committed
[bmd-videohub] add documentation
1 parent 2768f92 commit fab7b15

8 files changed

Lines changed: 83 additions & 11 deletions

File tree

src/modules/bmd-videohub/README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Appear X
2+
3+
## Overview
4+
5+
This module provides control of Blackmagic videohub routers.
6+
7+
Features:
8+
9+
- uses the stored labels from the device
10+
- provides custom groups (stored in BUG)
11+
- add/remove groups
12+
- reorder groups (drag/drop)
13+
- reorder buttons in groups
14+
- an optional 'use take' setting which requires two clicks to take a route
15+
- customisable colours and icons for all buttons
16+
- uses the device destination 'lock' feature
17+
18+
### UHD Quad-3G
19+
20+
An extra option has been added when the device is being used in UHD Quad-3D mode. Enabling 'quad' on a destination or source routes all 4 members of that group at the same time.
21+
Note that this can only be enabled for buttons 1,5,9 etc. To make things simpler, you can create a group with only the first buttons of each group visible.
22+
23+
## Screenshots
24+
25+
<img src="./assets/screenshot.png" width="55%" />
26+
<img src="./assets/screenshot-groups.png" width="55%" />
27+
<img src="./assets/screenshot-edit.png" width="55%" />
28+
<img src="./assets/screenshot-editgroups.png" width="55%" />
29+
<img src="./assets/screenshot-take.png" width="25%" />
30+
31+
## Configuration
32+
33+
| Field | Default Value | Description |
34+
| ----------------------- | ---------------- | -------------------------------------------------------------------- |
35+
| `id` | `""` | Unique identifier for this module instance (usually auto-generated). |
36+
| `needsConfigured` | `true` | Indicates whether the module has been configured since build. |
37+
| `title` | `""` | Human-readable title for this module instance, shown in the UI. |
38+
| `module` | `"bmd-videohub"` | Internal name of the module. |
39+
| `description` | `""` | Optional text describing the module instance in the UI. |
40+
| `notes` | `""` | Free-text field for extra notes about this configuration. |
41+
| `enabled` | `false` | Whether the module instance is enabled |
42+
| `address` | `""` | IP address or hostname of the device |
43+
| `port` | `9990` | Port used to communicate with the device |
44+
| `useTake` | `false` | Whether to require an extra 'take' action when making routes |
45+
| `sourceGroups` | `[]` | An array storing the configuration of the source groups |
46+
| `destinationGroups` | `[]` | An array storing the configuration of the destination groups |
47+
| `sourceIconColors` | `[]` | An array storing the configuration of the source icon colors |
48+
| `destinationIconColors` | `[]` | An array storing the configuration of the destination icon colors |
49+
| `sourceIcons` | `[]` | An array storing the configuration of the source icons |
50+
| `destinationIcons` | `[]` | An array storing the configuration of the source icons |
51+
| `excludeSources` | `[]` | An array containing all source indexes to exclude from the UI |
52+
| `excludeDestinations` | `[]` | An array containing all destination indexes to exclude from the UI |
53+
54+
---
55+
56+
## Capabilities
57+
58+
This module follows BUG’s standard capabilities model. For more information, see [BUG Capabilities Documentation](https://bbc.github.io/bug/pages/development/capabilities.html).
59+
60+
| Type | List |
61+
| ------------ | ------------ |
62+
| **Exposes** | video-router |
63+
| **Consumes** | None |
64+
65+
---
66+
67+
## Device Configuration
68+
69+
None required. Blackmagic devices don't use usernames or passwords!
70+
We recommend NATing or ACLing this device to other users.
71+
72+
---
73+
74+
## Troubleshooting
137 KB
Loading
28.3 KB
Loading
145 KB
Loading
18.8 KB
Loading
-656 KB
Loading

src/modules/bmd-videohub/client/components/RouterButton.jsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
import React from "react";
2-
import AxiosCommand from "@utils/AxiosCommand";
3-
import AxiosDelete from "@utils/AxiosDelete";
4-
import { useAlert } from "@utils/Snackbar";
1+
import { useBugConfirmDialog } from "@core/BugConfirmDialog";
2+
import { useBugCustomDialog } from "@core/BugCustomDialog";
53
import { useBugRenameDialog } from "@core/BugRenameDialog";
64
import BugRouterButton from "@core/BugRouterButton";
7-
import EditIcon from "@mui/icons-material/Edit";
85
import AddIcon from "@mui/icons-material/Add";
9-
import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
106
import BackspaceIcon from "@mui/icons-material/Backspace";
11-
import FilterTiltShiftIcon from "@mui/icons-material/FilterTiltShift";
12-
import { useBugCustomDialog } from "@core/BugCustomDialog";
13-
import AddGroupDialog from "./AddGroupDialog";
147
import CheckIcon from "@mui/icons-material/Check";
15-
import { useBugConfirmDialog } from "@core/BugConfirmDialog";
8+
import EditIcon from "@mui/icons-material/Edit";
9+
import FilterTiltShiftIcon from "@mui/icons-material/FilterTiltShift";
1610
import GridViewIcon from "@mui/icons-material/GridView";
11+
import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
12+
import AxiosCommand from "@utils/AxiosCommand";
13+
import AxiosDelete from "@utils/AxiosDelete";
14+
import { useAlert } from "@utils/Snackbar";
15+
import AddGroupDialog from "./AddGroupDialog";
1716

1817
export default function RouterButton({
1918
panelId,

src/modules/bmd-videohub/module.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"protectedRoutes": ["config"],
1616
"defaultconfig": {
1717
"id": "",
18-
"order": 0,
1918
"needsConfigured": true,
2019
"title": "",
2120
"module": "bmd-videohub",

0 commit comments

Comments
 (0)