3
share.addEventListener("click", event => {
      navigator.mediaDevices
        .getDisplayMedia()

        .then(returnedStream => {
         
          stream = returnedStream;
          video.srcObject = stream;
});

I want to save stream in localstorage

1 Answers1

1

Not at all recommended. LocalStorage has different file size limits for each browser, all of which are only a few megabytes; barely enough to hold a single image.

What is the max size of localStorage values?

cseitz
  • 1,116
  • 4
  • 16