MC Media Player

MC Media Player : Using Multiple Servers

Sometimes you have a web page on one server that uses files (movie clips, player files, etc) located on another server. For this explanation the first server is referred to as server1.com (the server that users see) and the second server is referred to as server2.com (the server that contains the files).

Example 1: Web page on one server calls all files from the second server

In this case server1.com does not host any of the player files at all. The player, JavaScript file, playlist and all media files are located on server2.com.

In the web page on server1.com, insert the line of code that calls the JavaScript from server2.com:

<script language="JavaScript" SRC="http://www.server2.com/mcmp720x360mc.js"></script>

On server2.com, upload the JavaScript file and make sure the following variables are set with absolute URLs:

mcplayerfile = "http://www.server2.com/mcmp720x360_player.swf";
playlist = "http://www.server2.com/mcmp720x360_playlist.xml";
mediadir = "http://www.server2.com/";

I hope to publish more examples with different configurations soon.