Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Pause/unpause? #62

Open
noozo opened this issue Apr 12, 2024 · 3 comments
Open

Pause/unpause? #62

noozo opened this issue Apr 12, 2024 · 3 comments

Comments

@noozo
Copy link

noozo commented Apr 12, 2024

How easy would it be to implement pause/unpause client-side? Would it be "just" a matter of not sending mediaEvents to the server as long as the client is paused? :)

@mickel8
Copy link
Contributor

mickel8 commented Apr 12, 2024

What do you mean by pause/unpause?

@noozo
Copy link
Author

noozo commented Apr 12, 2024

I mean temporarily stopping the video/audio sending to the server. Use case: say a user is recording a video, like in our case, and wants to pause because he wants to go to the toilet, or someone is at the door, but they don't want to start the whole thing over, maybe because it's been going well so far and they don't want to go through the whole thing again :)

@mickel8
Copy link
Contributor

mickel8 commented Apr 13, 2024

You can already do this by setting MediaStreamTrack's enabled property to false. https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled

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

No branches or pull requests

2 participants