11 Usage

  1. Download:
    bzr branch lp:p2psp

  2. Help!:
    cd p2psp/src  
    ./splitter.py --help  
    ./peer.py --help  
    less ../doc/P2PSP.md

  3. Watch the default channel (150.214.150.68:4552):
    cd p2psp/src  
    xterm -e "./peer.py --splitter_addr 150.214.150.68" &  
    vlc http://localhost:9999 &

  4. Watch a different channel (150.214.150.68:4554):
    cd p2psp/src  
    xterm -e "./peer.py --splitter_addr 150.214.150.68 --splitter_port 4554" &  
    vlc http://localhost:9999 &

  5. Create a local team (all running in the local host) and watch the default channel (using DBS):

    1. Using DBS:
      cd p2psp/src  
      xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv" &  
      xterm -e "./peer.py --use_localhost" & # Monitor  
      vlc http://localhost:9999 & # Monitor’s player  
      xterm -e "./peer.py --use_localhost --player_port 10000" & # Peer  
      vlc http://localhost:10000 & # Peer’s player

    2. Using IMS:
      cd p2psp/src  
      xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv --mcast" &  
      xterm -e "./peer.py" & # Monitor  
      vlc http://localhost:9999 & # Monitor’s player  
      xterm -e "./peer.py --player_port 10000" & # Peer  
      vlc http://localhost:10000 & # Peer’s player

  6. Test everything in local (including the source):
    cd p2psp/src  
    wget http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv  
    vlc Big_Buck_Bunny_small.ogv --sout "#duplicate{dst=standard{mux=ogg,dst=,access=http}}" &  
    xterm -e "./splitter.py --source_port 8080" &  
    xterm -e "./peer.py --use_localhost" &  
    vlc http://localhost:9999 &  
    xterm -e "./peer.py --use_localhost --player_port 10000" &  
    vlc http://localhost:10000 &

  7. Run the splitter and the monitor in one host and a peer in another host:

    1. In the splitter side (192.168.15.4):
      xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv" &  
      xterm -e "./peer.py --splitter_addr 192.168.15.4" &  
      vlc http://localhost:9999 &

    2. In the peer side (192.168.15.5, for example):
      xterm -e "./peer.py --splitter_addr 192.168.15.4" &  
      vlc http://localhost:9999 &