text: function getVideoDimensionsOf(url) {
      return new Promise(resolve => {
          // create the video element
          const video = document.createElement('video');
          video.preload = "metadata";
  
          // place a listener on it
          video.addEventListener("loadedmetadata", function () {
              // retrieve dimensions
              const height = this.videoHeight;
              const width = this.videoWidth;
              const duration = this.duration
              // send back result
              resolve({ height, width, duration });
          }, false);
          video.src = url;
  
      });
  }
  
  export default getVideoDimensionsOf;