We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce46b5 commit 3d5143fCopy full SHA for 3d5143f
1 file changed
Commands/Sources/Add-OBSMediaSource.ps1
@@ -67,7 +67,11 @@ function Add-OBSMediaSource {
67
# If not set, you will get an error if a source with the same name exists.
68
[Parameter(ValueFromPipelineByPropertyName)]
69
[switch]
70
- $Force
+ $Force,
71
+# If set, will fit the input to the screen.
72
+ [Parameter(ValueFromPipelineByPropertyName)]
73
+ [switch]
74
+ $FitToScreen
75
)
76
dynamicParam {
77
$baseCommand =
@@ -170,7 +174,13 @@ dynamicParam {
170
174
$outputAddedResult = Add-OBSInput @addSplat
171
175
if ($outputAddedResult) {
172
176
Get-OBSSceneItem -sceneName $myParameters["Scene"] |
173
- Where-Object SourceName -eq $name
177
+ Where-Object SourceName -eq $name |
178
+ Foreach-Object {
179
+ if ($FitToScreen) {
180
+ $_.FitToScreen()
181
+ }
182
+ $_
183
184
}
185
186
0 commit comments