• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video Playback issues

#1
How can I play a video using the `<video>` tag from a CodeIgniter application? 
    
Code:
    <video controls = "true" autoplay style="width:100%">
        <source type ="video/mp4" src="<?=base_url("/assets/media/12/upper.mp4")?>">
    </video>
   

Full path of video:

      var/www/html/project_name/application/www/assets/media

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):
      
Code:
    Directory index forbidden by Options directive:     
    /var/www/html/records_v2/www/media/12/upper.mp4/, referer:   
      https://dev.site.com/controller/method


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

Code:
                        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
Reply

#2
PHP Code:
<source type ="video/mp4" src="<?=base_url('/assets/media/12/upper.mp4')?>"
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
(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.
Reply

#4
check your change mod chmod on your server folder see if you have read / write access to that folder.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#5
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
Reply

#6
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?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.