
Local/offline playback (white screen)
I'm working on setting up a local, offline version of my website for developing/testing and am left with a JW Player issue. Here's the code:
<code> <div id='mediaspace'></div>
<script type="text/javascript">
jwplayer("mediaspace").setup({
flashplayer: "file:///c:/xampp/htdocs/TTP/jwplayer/player.swf",
file: "file:///c:/xampp/htdocs/20070417_aurora.mp4",
height: 504,
width: 720,
allowfullscreen: true,
allowscriptaccess: "always",
wmode: "opaque",
events: {
onPlay: function(event) {
var xmlHttp = getXMLHTTP();
xmlHttp.open("GET","sql/sendview.php?id=20070417_aurora",true);
xmlHttp.send();
}
}
});
</script><code>
Result: White box instead of player. If I use the player as online (that is, use "jwplayer/player.swf" for the player and "20070417_aurora.mp4" for the video file instead of the "file:///..." paths in above code) it plays back fine. Can anybody tell why using the offline notation does not work? I use Firefox and did switch local file access on. The "file:///" notation works fine elsewhere, just not with JW Player.
(The reason I want to use the "file:///" notation is that xampp is installed on an almost full SSD, so I want all the videos on a different drive and not inside the test site root folder.)