MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / studio_stream_quality_profile

Function studio_stream_quality_profile

packages/server/src/main.rs:1193–1203  ·  view source on GitHub ↗
(
    video_codec: VideoCodecMode,
    low_latency: bool,
    requested: Option<StreamQualityProfileArg>,
)

Source from the content-addressed store, hash-verified

1191}
1192
1193fn 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
1205fn command_service_url(explicit: Option<&str>) -> anyhow::Result<String> {
1206 if let Some(url) = explicit

Callers 2

expose_to_studioFunction · 0.85

Calls 1

as_profile_idMethod · 0.80

Tested by

no test coverage detected