text: export default class GetAudioVideoPermission {
      getPermission() {
          return new Promise((res, rej) => {
              navigator.mediaDevices
                  .getUserMedia({ video: true, audio: true })
                  .then((stream) => {
                      res(stream);
                  })
                  .catch((err) => {
                      throw new Error(`unable to get permission ${err}`);
                  });
          });
      }
  }
  