#Video not loading on cloud run
20 messages · Page 1 of 1 (latest)
It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.
Do you have any code you can share?
Sure
One sec
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/New Project (2).png" />
<title>testing</title>
</head>
<body>
<p>Testing</p>
<video id="myVideo" muted autoplay loop>
<source src="/White Flower.mp4" type = "video/mp4">
</video>
<style>
#myVideo {
position: fixed;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: -1;
object-fit: cover;
}
</style>
</body>
</html>
i have this in /src/pages
the video is in my public folder along with the new project (2).png
I think this may be happening because you have spaces in the file names, you can try renaming the files so they don't have spaces or try replacing the spaces in your paths (src and href) with %20
ill try that, thank you
the image loads fine in both the cloud run instance and the dev server its only the video though
Are you getting any console errors?
none
google cloud build says it builds alright
tried the spaces and got the same results unfortunatly
im doing cloud build from a github repo if that makes a difference
the videos are with git lfs
Ah ya that may be what is causing the problem, I don't have a lot of experience with git lfs but AFAIK it stores a reference to the video file in your repo not the actual video file