Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On pause screen share in safari #970

Open
AurimasG12 opened this issue Dec 21, 2023 · 2 comments
Open

On pause screen share in safari #970

AurimasG12 opened this issue Dec 21, 2023 · 2 comments

Comments

@AurimasG12
Copy link

AurimasG12 commented Dec 21, 2023

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

@lukasIO
Copy link
Contributor

lukasIO commented Dec 21, 2023

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

@aevaldas
Copy link

aevaldas commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants