CodeIgniter Forums

Full Version: Video Playback issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I play a video using the `<video>` tag from a CodeIgniter application? 
    <video controls = "true" autoplay style="width:100%">
        <source type ="video/mp4" src="<?=base_url("/assets/media/12/upper.mp4")?>">

Full path of video:


Apache gives me a forbidden, despite css/js serving from this directory with no issues. I've set the `.htaccess` in the `www` directory to `allow all` temporarily, and the issues persists.  

Here is the exact entry from `error_log`(httpd):
    Directory index forbidden by Options directive:     
    /var/www/html/records_v2/www/media/12/upper.mp4/, referer:

Here is some (relevant?) information from my `vhost` :

                        RewriteEngine On
                        RewriteBase /
                        RewriteCond %{REQUEST_FILENAME} -s [OR]
                        RewriteCond %{REQUEST_FILENAME} -l [OR]
                        RewriteCond %{REQUEST_FILENAME} -d
                        RewriteRule ^.*$ - [NC,L]
                        RewriteRule ^.*$ index.php [NC,L]

                        Options FollowSymLinks
                        AllowOverride none
                        Order deny,allow
                        deny from all
                        allow from xx.xx.xx.xx #my IP here
PHP Code:
<source type ="video/mp4" src="<?=base_url('/assets/media/12/upper.mp4')?>"
(11-16-2015, 02:27 PM)InsiteFX Wrote: [ -> ]
PHP Code:
<source type ="video/mp4" src="<?=base_url('/assets/media/12/upper.mp4')?>"

Yes, even with single quotes, I'm still getting a 403 forbidden.
check your change mod chmod on your server folder see if you have read / write access to that folder.
Permissions are as they should be, CSS/JS files are served from this directory no issue. I'm suspecting there is something in the vhost
Resolved. Freaking path. What I thought was the file name was actually a directory name. Derp.

Also, why cant i see my own threads without going to my control panel?