1

I've several no less than a minimum of 12-30, no more than a maximum 50-80 MB .mp4 video files with an overall duration of around 2:50-3 minutes in the GitLab repository, linked in GitLab and GitHub markdowns:

[![video session](https://github.com/user/project/blob/master/img/video-image.jpg)](https://gitlab.com/user/project/-/blob/main/video/video-1.mp4)  

I have 15 .mp4 files, compressed from 150-300 MB to minimal quality size min/max 12-80 MB for quick upload because even GitLab provides 10GB per repo, 150-300 MB mp4 takes a long time or freezes upload.

I'm not sure, which answer is sufficient to add a video with a player inside the markup How to embed a video into GitHub README.md?. So, maybe I can use the embedded player script for videos hosted on the GitLab repo.

I found How to embed videos in GitHub pages without growing the repository size which says about GitLab page (not markdown markup). I'm not quite understand where is access to GitHub uploaded videos by user-images.githubusercontent.com generated link, for example, if I want delete video. Anyway html shows .mp4 video uploaded from markup if less than 10 MB fine:

  <video src="https://user-images.githubusercontent.com/169707/126715420-991ad821-9ac8-4b66-b79e-e0966e0f3a89.mp4" data-canonical-src="https://user-images.githubusercontent.com/169707/126715420-991ad821-9ac8-4b66-b79e-e0966e0f3a89.mp4" controls="controls" muted="muted" class="d-block rounded-bottom-2 width-fit" style="max-height:640px;">

but player disappears as in README markdown also in GitLab page html, if I change links to my videos from GitLab repository:

<video src="https://gitlab.com/user/project/-/blob/main/video/video-1.mp4" data-canonical-src="https://gitlab.com/user/project/-/blob/main/video/video-1.mp4" controls="controls" muted="muted" class="d-block rounded-bottom-2 width-fit" style="max-height:640px;">

Possibly it is a privacy setting, because I was trying to set up the GitLab repository to make it private and keep the GitLab page public at the same time, according to this copy of URL at the current time note: Create Your First GitLab Pages Site tutorial but wasn't found this setting in Project and group visibility.

Now it is public and I am logged in to both GitHub and GitLab profiles, videos hosted on the GitLab repository do not appear in the player, no matter if it is GitHub or GitLab markdown.

emss
  • 41
  • 2

0 Answers0