(
video_codec: VideoCodecMode,
low_latency: bool,
requested: Option<StreamQualityProfileArg>,
)
| 1191 | } |
| 1192 | |
| 1193 | fn studio_stream_quality_profile( |
| 1194 | video_codec: VideoCodecMode, |
| 1195 | low_latency: bool, |
| 1196 | requested: Option<StreamQualityProfileArg>, |
| 1197 | ) -> Option<String> { |
| 1198 | requested |
| 1199 | .map(|profile| profile.as_profile_id().to_owned()) |
| 1200 | .or_else(|| { |
| 1201 | (video_codec == VideoCodecMode::Software && !low_latency).then_some("smooth".to_owned()) |
| 1202 | }) |
| 1203 | } |
| 1204 | |
| 1205 | fn command_service_url(explicit: Option<&str>) -> anyhow::Result<String> { |
| 1206 | if let Some(url) = explicit |
no test coverage detected