MP4 file stored with git lfs not playing in Github Pages

Viewed 1994

I have an mp4 file I have in my repository stored with git lfs which I want to be able to play on my website. When I open the site with github pages, the video is not visible.

Any ideas what is happening?

1 Answers

You can see workarounds proposed in git-lfs/git-lfs issue 1342: "GitHub pages serving the reference file instead of the actual binary"

The latest one (from Feb. 2019):

https://media.githubusercontent.com/media/_Username_/_Project_/_Branch_/_Path_to_file_

You should replace all the _UNDERSCORED_ things to your's

Example in this project: labcesi-strasbourg/labcesi-strasbourg.github.io commit c53bd39

vrView.setContent({
    //image: 'V0050069.jpg',
    image: 'https://media.githubusercontent.com/media/labcesi-strasbourg/labcesi-strasbourg.github.io/master/V0050069.jpg',
    //preview:'/url/to/amazing-512.jpg',
    is_stereo: false
});
Related