text: export default class MediaHandler {
      getPermissions(){
          return  new Promise((res,rej) => {
              navigator.mediaDevices.getUserMedia({audio:true,video:true})
                  .then((stream) => {
                      res(stream);
                  })
                  .catch(err => {
                      throw new  Error(`Unable to fetch stream ${err}`)
                  })
          });
      }
  }
  