platform additions

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-03-21 11:27:30 +08:00
1 parent ea584c2eb9
commit 1d122b5a73
7 files changed
+28 -2

No files matched your search

+10
View File
@@ -843,6 +843,16 @@ impl Connection {
pi.hostname = DEVICE_NAME.lock().unwrap().clone();
pi.platform = "Android".into();
}
#[cfg(target_os = "linux")]
{
pi.platform_additions = format!(r#"
{{
"is_wayland": {},
}}
"#, crate::platform::current_is_wayland());
}
#[cfg(feature = "hwcodec")]
{
let (h264, h265) = scrap::codec::Encoder::supported_encoding();