Skip to content

Commit cf62762

Browse files
committed
feat: optional studioLabelShort for presenters view
1 parent 0a87149 commit cf62762

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/blueprints-integration/src/content.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,20 @@ export interface GraphicsContent extends BaseContent {
6767

6868
export interface CameraContent extends BaseContent {
6969
studioLabel: string
70+
studioLabelShort?: string
7071
switcherInput: number | string
7172
}
7273

7374
export interface RemoteContent extends BaseContent {
7475
studioLabel: string
76+
studioLabelShort?: string
7577
switcherInput: number | string
7678
}
7779

7880
/** Content description for the EVS variant of a LOCAL source */
7981
export interface EvsContent extends BaseContent {
8082
studioLabel: string
83+
studioLabelShort?: string
8184
/** Switcher input for the EVS channel */
8285
switcherInput: number | string
8386
/** Name of the EVS channel as used in the studio */
@@ -155,6 +158,7 @@ export interface NoraContent extends BaseContent {
155158
export interface SplitsContentBoxProperties {
156159
type: SourceLayerType
157160
studioLabel: string
161+
studioLabelShort?: string
158162
switcherInput: number | string
159163
/** Geometry information for a given box item in the Split. X,Y are relative to center of Box, Scale is 0...1, where 1 is Full-Screen */
160164
geometry?: {

packages/webui/src/client/ui/PieceIcons/PieceIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const PieceIcon = (props: {
4949
const rmContent = piece ? (piece.content as RemoteContent | undefined) : undefined
5050
return (
5151
<RemoteInputIcon
52-
inputIndex={rmContent ? rmContent.studioLabel : undefined}
52+
inputIndex={rmContent ? rmContent.studioLabelShort || rmContent.studioLabel : undefined}
5353
abbreviation={props.sourceLayer.abbreviation}
5454
/>
5555
)
@@ -58,7 +58,7 @@ export const PieceIcon = (props: {
5858
const localContent = piece ? (piece.content as EvsContent | undefined) : undefined
5959
return (
6060
<LocalInputIcon
61-
inputIndex={localContent ? localContent.studioLabel : undefined}
61+
inputIndex={localContent ? localContent.studioLabelShort || localContent.studioLabel : undefined}
6262
abbreviation={props.sourceLayer.abbreviation}
6363
/>
6464
)
@@ -71,7 +71,7 @@ export const PieceIcon = (props: {
7171
const camContent = piece ? (piece.content as CameraContent | undefined) : undefined
7272
return (
7373
<CamInputIcon
74-
inputIndex={camContent ? camContent.studioLabel : undefined}
74+
inputIndex={camContent ? camContent.studioLabelShort || camContent.studioLabel : undefined}
7575
abbreviation={props.sourceLayer.abbreviation}
7676
/>
7777
)

0 commit comments

Comments
 (0)