You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One issue I've run into a lot lately is that when the remote computer is just powered off and there's no video signal, TinyPilot thinks that H.264 has failed:
We should adjust the H.264 -> MJPEG failover to check first whether there's a signal at all. If the reason Janus isn't streaming anything is that there's no image to stream, we shouldn't fail over to MJPEG or present a warning to the user.
To repro
Enable H.264 video on TinyPilot
Turn off target computer
Expected: TinyPilot stays in H.264 mode.
Actual: TinyPilot fails over into MJPEG mode.
Longer demo
shutdown-error.mp4
The text was updated successfully, but these errors were encountered:
I'm realizing we need to get the 2.6.1 image to the contract manufacturer pretty early so that there's no confusion over which version to use, so I'm punting this one to 2.6.2.
Resolves#1487
This PR refactors our remote-screen WebRTC API to allow media tracks to
be added/removed without automatically enabling/disabling the WebRTC
streaming mode. This gives more responsibility to the (function) caller,
but also gives more control in deciding when to change streaming modes.
Demo video:
https://github.com/tiny-pilot/tinypilot/assets/6730025/d891fbcb-1cea-41fe-b775-948b5a9879e6
Notes
1. We've renamed `enableWebrtcStreamTrack` -> `addWebrtcStreamTrack`
* This method no longer enables WebRTC mode (i.e., shows the video
element)
1. We've renamed `disableWebrtcStreamTrack` -> `removeWebrtcStreamTrack`
* This method no longer disables WebRTC mode (i.e., hides the video
element)
1. WebRTC mode can now both be enabled and have zero media tracks
* This was the cause of the original bug
1. The remote-screen will still failover to MJPEG when the connection to
Janus fails, but will not try to reconnect until a full page refresh
<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1619"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
One issue I've run into a lot lately is that when the remote computer is just powered off and there's no video signal, TinyPilot thinks that H.264 has failed:
We should adjust the H.264 -> MJPEG failover to check first whether there's a signal at all. If the reason Janus isn't streaming anything is that there's no image to stream, we shouldn't fail over to MJPEG or present a warning to the user.
To repro
Expected: TinyPilot stays in H.264 mode.
Actual: TinyPilot fails over into MJPEG mode.
Longer demo
shutdown-error.mp4
The text was updated successfully, but these errors were encountered: