Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Client</strong> machines cannot play media files available <strong>locally</strong> on their drive with <strong>online flash players</strong> (with url = <a href="http://servername/playerapplication/playerpage" rel="nofollow">http://servername/playerapplication/playerpage</a>), for security reasons, unless they <strong>upload</strong> the files to the server. </p> <blockquote> <p>Check these links: <a href="http://www.longtailvideo.com/support/forums/jw-player/feature-suggestions/910/can-read-from-a-absolute-path#comment-57954" rel="nofollow">http://www.longtailvideo.com/support/forums/jw-player/feature-suggestions/910/can-read-from-a-absolute-path#comment-57954</a>; <a href="http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/8872/local-media-files" rel="nofollow">http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/8872/local-media-files</a></p> </blockquote> <p>But you still can play a media file available on the <strong>server</strong>'s <strong><code>C:\</code></strong> drive, <strong>online</strong> from <strong>any machine</strong>, by using a <strong>streaming server</strong> like <a href="http://www.wowzamedia.com" rel="nofollow">Wowza Media Server</a> or <a href="http://www.red5server.org" rel="nofollow">Red5</a>.</p> <p>For Wowza server, you have to do the following:</p> <ol> <li>Create a new empty folder for your application (e.g. myplayerapp) under <code>[wowza-install-dir]/applications</code></li> <li>Create another new empty folder (myplayerapp) under <code>[wowza-install-dir]/conf</code>, that includes <strong><code>Application.xml</code></strong> (Copy <code>[wowza-install-dir]/conf/Application.xml</code>), where you set <code>Streams/StorageDir</code> to <code>C:</code></li> </ol> <blockquote> <p><a href="http://www.streamalot.com/wowza-tips&amp;tricks-jwplayer.shtml" rel="nofollow">http://www.streamalot.com/wowza-tips&amp;tricks-jwplayer.shtml</a></p> </blockquote> <p>And your code will be like this:</p> <pre><code> jwplayer("VideoContainer").setup({ autostart: true, flashplayer: "swf/player.swf", file: "name.flv", //if your file is under C:\test, it will be file: "test/name.flv"... height: 270, width: 480, bufferlength: 2, streamer: "rtmp://servername/myplayerapp" }); </code></pre> <p>Note that the Wowza Media Server should be started before running the player page.</p> <p>Otherwise, to open <strong>local files</strong> on any machine, you need to open the player <strong>offline</strong> from every machine (e.g. C:\webserver\playerapplication\playerpage) and all the files (<code>swf</code>, <code>js</code>, <code>media files</code>) must have their locations set as <strong>local paths</strong>, as follows:</p> <pre><code> jwplayer("VideoContainer").setup({ autostart: true, flashplayer: "file:///C:/webserver/playerapplication/swf/player.swf", //or "C:\\...\\player.swf" or "C:/.../player.swf" file: "file:///C:/name.flv", height: 270, width: 480 }); </code></pre>
 

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