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 52a768d commit 6ce46b5Copy full SHA for 6ce46b5
1 file changed
Commands/Sources/Add-OBSMediaSource.ps.ps1
@@ -74,7 +74,12 @@ function Add-OBSMediaSource
74
# If not set, you will get an error if a source with the same name exists.
75
[Parameter(ValueFromPipelineByPropertyName)]
76
[switch]
77
- $Force
+ $Force,
78
+
79
+ # If set, will fit the input to the screen.
80
+ [Parameter(ValueFromPipelineByPropertyName)]
81
+ [switch]
82
+ $FitToScreen
83
)
84
85
process {
@@ -155,7 +160,13 @@ function Add-OBSMediaSource
155
160
$outputAddedResult = Add-OBSInput @addSplat
156
161
if ($outputAddedResult) {
157
162
Get-OBSSceneItem -sceneName $myParameters["Scene"] |
158
- Where-Object SourceName -eq $name
163
+ Where-Object SourceName -eq $name |
164
+ Foreach-Object {
165
+ if ($FitToScreen) {
166
+ $_.FitToScreen()
167
+ }
168
+ $_
169
159
170
}
171
172
0 commit comments