Jump to content

video embed through API


digitex
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...