Configuration samples

The configuration sample files are part of the FreeCast distributions. See Chapter 3, Installation.

Audio FreeCast network

Example 5.1. Audio root node configuration sample

<!-- 
   FreeCast configuration file
   visit http://www.freecast.org/userguide/node-configuration.html
-->
<freecast>
   <node>
      <peerprovider>
      <!-- specifies where the tracker lives -->
        <trackeraddress>
          <host>localhost</host>
        </trackeraddress>
      </peerprovider>
    <receiver>
      <!-- just a test playlist, use your own stream ;o) -->
      <class>playlist</class>
         <url>http://download.freecast.org/jws/default/audio.m3u</url>
      <bandwidth>70</bandwidth>
      </receiver>
  </node>
</freecast>

Example 5.2. Audio listener node configuration sample

<!-- 
   FreeCast configuration file
   visit http://www.freecast.org/userguide/node-configuration.html
-->
<freecast>
   <node>
      <peerprovider>
      <!-- specifies where the tracker lives -->
        <trackeraddress>
          <host>localhost</host>
        </trackeraddress>
      </peerprovider>
      <players>
         <player>
           <!-- play the stream in the sound card -->
           <class>audio</class>
         </player>
      </players>
  </node>
</freecast>

Example 5.3. Start a FreeCast network with the Audio configuration sample

[host:~] ./bin/freecast-tracker &
[host:~] ./bin/freecast -config docs/examples/audio/freecast-node-root.xml &
[host:~] ./bin/freecast-swing -config docs/examples/audio/freecast-node-listener.xml

Video FreeCast network

Example 5.4. Video root node configuration sample

<!-- 
   FreeCast configuration file
   visit http://www.freecast.org/userguide/node-configuration.html
-->
<freecast>
   <node>
      <peerprovider>
      <!-- specifies where the tracker lives -->
        <trackeraddress>
          <host>localhost</host>
        </trackeraddress>
      </peerprovider>
    <receiver>
      <!-- the nodes connects to the specified source stream server -->
      <class>shoutclient</class>
      <!-- Just a test stream, visit http://www.fluendo.com -->
         <url>http://stream.fluendo.com:8800</url>
      </receiver>
  </node>
</freecast>

Example 5.5. Video listener node configuration sample

<!-- 
   FreeCast configuration file
   visit http://www.freecast.org/userguide/node-configuration.html
-->
<freecast>
   <node>
      <peerprovider>
      <!-- specifies where the tracker lives -->
        <trackeraddress>
          <host>localhost</host>
        </trackeraddress>
      </peerprovider>
      <players>
         <player>
           <!-- play the stream into the embedded video plyare -->
           <class>video</class>
        <audio>true</audio>
         </player>
      </players>
  </node>
</freecast>

Example 5.6. Start a FreeCast network with the Audio configuration sample

[host:~] ./bin/freecast-tracker &
[host:~] ./bin/freecast -config docs/examples/video/freecast-node-root.xml &
[host:~] ./bin/freecast-swing -config docs/examples/video/freecast-node-listener.xml