我有一個 index.html 檔案,其中有一個<video>元素(存盤在 Git LFS 中)設定為背景,但是 GitHub 頁面最近停止加載它 - 幾周前它確實有效。控制臺中也沒有問題。
在本地服務器上,它可以在任何瀏覽器中按預期作業,所有更改都被推送到 git。
有沒有人遇到過類似的問題并知道如何解決?
<!-- The video -->
<video id="background-video" autoplay muted loop playsinline >
<source src="assets/animation/star_burst.mp4" type="video/mp4">
<source src="assets/animation/star_burst.mov" type="video/mov">
<source src="assets/animation/star_burst.mp4" type="video/webm">
</video>
鏈接到檔案以防萬一。
謝謝
uj5u.com熱心網友回復:
您的檔案幾周前還在作業,但現在已移至他們的Git 大檔案存盤,這意味著該assets/animation/star_burst.mp4檔案現在是一個指向存盤位置的文本檔案。
嘗試指定直接訪問鏈接。像https://media.githubusercontent.com/media/AnnaxT/AnnaxT.github.io/main/assets/animation/star_burst.mp4這樣的東西。
您可以通過單擊https://github.com/AnnaxT/AnnaxT.github.io/blob/main/assets/animation/star_burst.mp4上的“查看原始”按鈕來獲取它
或者只是上傳較小的較大檔案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/405533.html
標籤:
上一篇:需要幫助完成將代碼從VSCode中的代碼庫推送到Github的程序
下一篇:如何除錯GitLFS推送失敗?
