"My Home Automation Projects"

Devices - Player

Please also read the Disclaimer

MediaNet - Device Modules - Player

Purpose: To support the Shoutcast capable software players such as Winamp & VLC

This module allows a software player to connect to MediaNet via a URL and then have the Music controlled by the MediaNet Web Interface

Clients are added dynamically, and do not get written to clients.xml

The URL format is http://<ip>:<port>:/<name>  where IP = IP address of MediaNet, Port = Port number as per loader.xml and name = a unique text name (avoid spaces) to identify this instance

You may also override one or both of sample and bit rate by specifying /b=bitrate&s=samplerate or /b=bitrate and /s=samplerate (e.g. /b=96&s=22050)

It is planned that a future version of this module will support an OSD display and generic remote controls to allow control via OSD and remote control via other devices

LOADER.xml

Most entries in loader.xml are default values assigned to newly discovered Player's. As Players are not persistent, there are no entries in clients.xml

<loader>
    <instance>
        <device module="PLAYER" enabled="n" type="player" />
          set enabled="y" to enable player support
        <settings tts_enabled="n" tts_helper="TTS" tts_threshold="60000" />
          specify whether to support Text-to-Speech
        <settings stats_enabled="y" stats_helper="STATS" />
          specify whether played tracks should be added to the play statistics in the database
        <module>
            <load module="PLAYERCAST" enabled="y" />
            <settings port="8070" meta="y" />
              this module loads an instance on port 8070 with metadata
              use for shoutcast aware clients like Winamp

        </module>
        <module>
            <load module="PLAYERCAST" enabled="y" />
            <settings port="8071" meta="n" />
              this module loads an instance on port 8070 without metadata
              use for non-shoutcast aware clients like vlc

        </module>
    </instance>
</loader>

You must set appropriate free ports for the Playercast modules