digitex Posted November 14, 2019 Posted November 14, 2019 I'm working on a site that's using a background video on the home page. I've run into a problem though. I created a file field to hold the video and call it in with the following: <video class="video-background" loop no-controls autoplay src="<?php echo $hp->video->url;?>" poster=""></video> This doesn't work and throws this error: HTTP load failed with status 403. BUT when I upload the video to a sub-directory in Templates and use this code: <video class="video-background" loop no-controls autoplay src="<?php echo $config->urls->templates?>css/images/WB5.m4v" poster=""></video> It works. I expect it's an htaccess thing but I can't understand why since any other file works fine why is video different and what do I need to do to get around it?
digitex Posted November 15, 2019 Author Posted November 15, 2019 12 hours ago, Zeka said: @digitex Try to use $hp->video->httpUrl. I didn't even think of that. Thank you.
kixe Posted November 15, 2019 Posted November 15, 2019 13 hours ago, Zeka said: Try to use $hp->video->httpUrl. Why?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now