-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extending OBS.GetInputList.Response (Fixes #99)
- Loading branch information
James Brundage
committed
May 28, 2023
1 parent
7279532
commit 3e6c691
Showing
8 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Nexts an input | ||
.DESCRIPTION | ||
Sends a "Next" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Pauses an input | ||
.DESCRIPTION | ||
Sends a "Pause" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Plays an input | ||
.DESCRIPTION | ||
Sends a "Play" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Previouss an input | ||
.DESCRIPTION | ||
Sends a "Previous" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Restarts an input | ||
.DESCRIPTION | ||
Sends a "Restart" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Stops an input | ||
.DESCRIPTION | ||
Sends a "Stop" message to an input. | ||
.LINK | ||
Send-OBSTriggerMediaInputAction | ||
#> | ||
param( | ||
# If set, will return the message instead of sending it now. | ||
[switch] | ||
$PassThru | ||
) | ||
|
||
$this | Send-OBSTriggerMediaInputAction -MediaAction "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP" -PassThru:$PassThru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<# | ||
.SYNOPSIS | ||
Gets an input's filters | ||
.DESCRIPTION | ||
Gets the filters related to an OBS input. | ||
.EXAMPLE | ||
$obsPowerShellIcon = Show-OBS -Uri https://obs-powershell.start-automating.com/Assets/obs-powershell-animated-icon.svg | ||
$obsPowerShellIcon | Set-OBSColorFilter -Opacity .5 | ||
$obsPowerShellIcon.Input.Filters | ||
.LINK | ||
Get-OBSSourceFilterList | ||
#> | ||
Get-OBSSourceFilterList -SourceName $this.InputName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<# | ||
.SYNOPSIS | ||
Gets an input's status | ||
.DESCRIPTION | ||
Gets the media status of an OBS input. | ||
.LINK | ||
Get-OBSMediaInputStatus | ||
#> | ||
param() | ||
$this | Get-OBSMediaInputStatus |