client-sdk-js icon indicating copy to clipboard operation
client-sdk-js copied to clipboard

On pause screen share in safari

Open AurimasG12 opened this issue 2 years ago • 2 comments

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

  1. Join livekit meeting

  2. Start screen share

  3. Click pause button in image

  4. 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

AurimasG12 avatar Dec 21 '23 04:12 AurimasG12

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

lukasIO avatar Dec 21 '23 14:12 lukasIO

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.

aevaldas avatar Feb 08 '24 14:02 aevaldas