title: How to hide the file path in Jw player
body: <p>I  need to play the video using Jw player. It's working fine when the give the file path directly. But I need to hide or use different path to access the video file for some secure reason.</p>
  
  <p>I have the following Code :- </p>
  
  <p>script Code:- </p>
  
  <pre><code> var playerInstance = jwplayer("track_player");
      playerInstance.setup({
        primary: "flash",
        'modes': [{ type: 'html5' }],
        file: http://localhost.com/mypro/index.php/load_video,
        provider: "http",
          type: 'mp4',
        image: "http://content.jwplatform.com/thumbs/HkauGhRi-640.jpg",
        width: 640,
        height: 360,
        title: 'A Basic Video Embed',
        description: 'A video with a basic title and description!'
      });
  </code></pre>
  
  <p>Controller Code :- </p>
  
  <pre><code>public function load_song(){
      $filename = base_url().'/uploads/test.mp4';
      header("Content-type: video/mp4");
      header("Content-Length: ".filesize($filename));
      readfile($filename); 
  }
  </code></pre>
  
  <p>I used the above code to diplay the video using JWplayer. I got error below error message.</p>
  
  <blockquote>
    <p>Error loading media file : file not fount </p>
  </blockquote>