code: protected Video getVideoPlayerElement(@NotNull Media media) {
      Dimension dimension = MediaMarkupBuilderUtil.getMediaformatDimension(media);
  
      Video video = new Video();
      video.setWidth((int)dimension.getWidth());
      video.setHeight((int)dimension.getHeight());
      video.setControls(true);
  
      // add video sources for each video profile
      addSources(video, media);
  
      // add flash player as fallback
      video.addContent(getFlashPlayerElement(media, dimension));
  
      return video;
    }
docs: Build HTML5 video player element
  @param media Media metadata
  @return Media element