Closed jdeanwallace closed 11 months ago
⏳ @mtlynch please review this Pull Request
⏳ @jotaen4tinypilot please review this Pull Request
I'm reassigning this one to @jotaen4tinypilot. I think he'll do a better review, and he's back pretty soon. I'm a bit swamped this week.
Resolves https://github.com/tiny-pilot/tinypilot/issues/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
enableWebrtcStreamTrack
->addWebrtcStreamTrack
disableWebrtcStreamTrack
->removeWebrtcStreamTrack