CodeIgniter Forums
Video Playback issues - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: Video Playback issues (/showthread.php?tid=63585)

Video Playback issues - manny - 11-16-2015

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

RE: Video Playback issues - InsiteFX - 11-16-2015

PHP Code:
<source type ="video/mp4" src="<?=base_url('/assets/media/12/upper.mp4')?>"

RE: Video Playback issues - manny - 11-17-2015

(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.

RE: Video Playback issues - InsiteFX - 11-18-2015

check your change mod chmod on your server folder see if you have read / write access to that folder.

RE: Video Playback issues - manny - 11-18-2015

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

RE: Video Playback issues - manny - 11-23-2015

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?