fix(portal): send black video while locked so iPhone starts auto unlock (#34)

* fix(portal): bootstrap video for iPhone locked auto unlock

* docs: keep the #29 experiment record in the PR instead of the repository

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: VallierDev <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-10-17 11:44:15 +08:00
1 parent bb95774ecb
commit cc01b3e2a5
8 files changed
+469 -9

No files matched your search

+2 -2
View File
@@ -274,7 +274,7 @@ fn ffmpeg_spec() -> FfmpegSpec {
}
}
fn ffmpeg_command() -> Command { ffmpeg_spec().command() }
pub(crate) fn ffmpeg_command() -> Command { ffmpeg_spec().command() }
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
enum FfmpegTimingMode { Modern, Legacy }
@@ -673,7 +673,7 @@ fn wayland_capture_command(executable:&std::path::Path,fps:u32)->Command {
command
}
fn transport_closed(pc: &RTCPeerConnection) -> bool {
pub(crate) fn transport_closed(pc: &RTCPeerConnection) -> bool {
matches!(pc.connection_state(), RTCPeerConnectionState::Closed | RTCPeerConnectionState::Failed)
|| pc.sctp().state() == webrtc::sctp_transport::sctp_transport_state::RTCSctpTransportState::Closed
}