On pause screen share in safari
Describe the bug
When I'm pausing screen share in safari then resuming, it throws A MediaStreamTrack ended due to a capture failure and then track event on ended fires.
Reproduction
-
Join livekit meeting
-
Start screen share
-
Click pause button in
-
Click resume button
Logs
`A MediaStreamTrack ended due to a capture failure`
System Info
System:
OS: macOS 14.1.1
CPU: (8) arm64 Apple M1
Memory: 284.19 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 3.6.3 - /usr/local/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
Browsers:
Chrome: 120.0.6099.129
Edge: 120.0.2210.89
Safari: 17.1
npmPackages:
livekit-client: ^1.15.0 => 1.15.0
Severity
annoyance
Additional Information
No response
Thanks for the report. To my knowledge it's not possible to simply "resume" a screen share track. Do you have an example of a web based app where this works as you expect it to?
Guess we could somehow figure out the "pause" and then just unpublish the track right then to make it not fail on resume, but earlier
Guess we could somehow figure out the "pause" and then just unpublish the track right then to make it not fail on resume, but earlier
I would say that the easiest way for now is to unpublish when the track pauses. Google Meets work the same way.