Customizable listener interface

The FreeCast Swing GUI can be easily customized with the configuration.

Several parameters are configurable :

  • the logo displayed in the window
  • the background color used in the window
  • the title of the window
  • the two player icons used when the player is playing or stopped
  • the tray icon

The used images can be in png, gif or jpg formats. An http url can be specified, the image will be downloaded and stored into a cache. Logo and players icons size is free. The FreeCast Swing GUI size is automaticaly adapted.

XML configuration

A gui section can be added to the node configuration xml file :

<freecast>
  <node> 
    <!-- ... -->
  </node>
  <gui>
    <background>#ffffff</background> 
    <logo>http://stream.acme-radio.org/freecast/logo.png</logo>
    <tray>http://stream.acme-radio.org/freecast/icon-24.png</tray>
 
    <player>
      <started>http://stream.acme-radio.org/freecast/player-started.png</started>
      <stopped>http://stream.acme-radio.org/freecast/player-stopped.png</stopped>
    </player>
  </gui>
</freecast>

Examples

<freecast>
  <node>
    <!-- ... -->
  </node>
  <gui>
    <logo>http://stream.acmee.com/freecast/logo.png</logo>
    <title>ExtraMundi</title>
    <background>#ffffff</background>
  </gui>
</freecast>

How to test

Copy and edit the freecast-node-listener.xml sample configuration and add a <gui/> section to the file.

Use the Swing GUI in command line (see the FreeCast man page) and specify your freecast node configuration :

bin/freecast-swing -config freecast-node-listener.xml
 
freecast/customizable_listener_interface.txt · Last modified: 2007/11/25 18:58 by alban
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Debian