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