Skip to content
njiang edited this page Sep 9, 2014 · 2 revisions

Build and execution of the project:

You can install the IntelliJ IDE to build and debug the project. Make sure to open "File->Project Structures" and add the xuggler libraries to the project.

Once you build the project, go to it's out\production\SMART directory. To start the server, use the command like follows:

java -cp "%CLASSPATH%;.;\GitHub\SMART\lib\xuggle-xuggler-5.4.jar;\GitHub\SMART\libslf4j-api-1.7.7.jar" com.SMART.SmartServer

Note to include "." in classpath.

It is similar to start the Router and the player. Both the router and player take a command line argument which points to a configuration file.

For the SmartRouter class, make sure to have the argument pointing to a file that contains the router information. I included a smart_graph.txt in the code. Basically the file contains two lines for each router. The first line is the IP address of a router. The second line is the neighboring nodes of the routers (including the clients). The server IP address should be prefixed with "**".

For the SmartPlayer class, include a player.txt as the argument. The file should include the IP address of the neighboring router of the machine that runs the player.

Make sure to save the video file in a folder and modify the smartplayer and smartserver to point to the same video file. Or you can modify the code to read the folder from the configuration files.

Clone this wiki locally