Private/GetResolutionValueFromStream.ps1
function GetResolutionValueFromStream { param([VideoOS.Platform.ConfigurationItems.StreamChildItem]$Stream) $res = $Stream.Properties.GetValue("StreamProperty") if ($null -ne $res) { ($Stream.Properties.GetValueTypeInfoCollection("StreamProperty") | Where-Object Value -eq $res).Name return } $res = $Stream.Properties.GetValue("Resolution") if ($null -ne $res) { ($Stream.Properties.GetValueTypeInfoCollection("Resolution") | Where-Object Value -eq $res).Name return } } |