Note that there are some explanatory texts on larger screens.

plurals
  1. POHide file source with PHP for divx player
    text
    copied!<p>I need a method to hide the file source in embedding code for the DivX player.</p> <p>The file source is remote. I am trying to stream the file through a php file using the header. I am using 3 parts. 1:define the file path in a session. 2:embed the video reading file : stream.php. 3: redirect to video source.</p> <p>Here is part 1, define file source:</p> <pre><code>&lt;?PHP session_start(); $_SESSION["url_vid"] = "http://remote-server.com/file.avi"; ?&gt; </code></pre> <p>Here is the embed code (part 2):</p> <pre><code>&lt;object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="320" height="260" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"&gt; &lt;param name="custommode" value="none" /&gt; &lt;param name="autoPlay" value="false" /&gt; &lt;param name="src" value="stream.php" /&gt; &lt;embed type="video/divx" src="stream.php" custommode="none" width="850" height="400" autoPlay="false" pluginspage="http://go.divx.com/plugin/download/"&gt; &lt;/embed&gt; &lt;/object&gt; </code></pre> <p>here is the stream.php code :</p> <pre><code>&lt;?PHP session_start(); header("Location :".$_SESSION["url_vid"]); ?&gt; </code></pre> <p>This isn't working.</p> <p>When it the DivX player is ran, it alerts with : "The DivX Plus Web Player could not download the video, please check your Internet connection" But when going directly to the stream.php file it begins downloading the file.</p> <p>Does anyone know of any alternative ways to hide the file path. Or some way to fuss with the stream.php file to get it working through the DivX player. </p> <p>I need to use the DivX player because it can read .avi files.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload