Skip to content

Commit

Permalink
Moblink status in remote control.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jan 6, 2025
1 parent 2914025 commit 41071d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Moblin/RemoteControl/RemoteControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ struct RemoteControlStatusTopRight: Codable {
var srtla: RemoteControlStatusItem?
var recording: RemoteControlStatusItem?
var browserWidgets: RemoteControlStatusItem?
var moblink: RemoteControlStatusItem?
}

struct RemoteControlSettingsScene: Codable, Identifiable {
Expand Down
3 changes: 3 additions & 0 deletions Moblin/Various/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7058,6 +7058,9 @@ extension Model: RemoteControlStreamerDelegate {
if isShowingStatusBrowserWidgets() {
topRight.browserWidgets = RemoteControlStatusItem(message: browserWidgetsStatus)
}
if isShowingStatusSrtlaRelay() {
topRight.moblink = RemoteControlStatusItem(message: srtlaRelayStatus)
}
onComplete(general, topLeft, topRight)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ private struct ControlBarRemoteControlAssistantLeftView: View {
StatusItemView(icon: "waveform", status: status.audioLevel)
}
StatusItemView(icon: "server.rack", status: status.rtmpServer)
StatusItemView(icon: "app.connected.to.app.below.fill", status: status.moblink)
StatusItemView(
icon: "appletvremote.gen1",
status: status.remoteControl
Expand Down

0 comments on commit 41071d8

Please sign in to comment.