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?
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?
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
});