README
changeset 35 8040903d25de
parent 20 bb8237ca678d
child 65 35fe20340c91
equal deleted inserted replaced
34:3b817b961984 35:8040903d25de
    11    </p>
    11    </p>
    12 <p>Greyhound's interface is based on the WebControl script by Jonas Christian
    12 <p>Greyhound's interface is based on the WebControl script by Jonas Christian
    13    Drewsen, Andr&#0233; Kelpe, and Peter C. Ndikuwera. However unlike WebControl
    13    Drewsen, Andr&#0233; Kelpe, and Peter C. Ndikuwera. However unlike WebControl
    14    Greyhound is written entirely in PHP, making it a bit more portable. This
    14    Greyhound is written entirely in PHP, making it a bit more portable. This
    15    script doesn't require an external web server to run, it has a relatively
    15    script doesn't require an external web server to run, it has a relatively
    16    basic built-in (single-threaded) server.</p>
    16    basic built-in (but multi-threaded) server.</p>
    17 <p>The script needs a browser with XmlHttpRequest (AJAX) support to work. It's
    17 <p>The script needs a browser with XmlHttpRequest (AJAX) support to work. It's
    18    been tested on Firefox 3.0 beta 4 and Safari.</p>
    18    been tested on Firefox 3.0.1, Safari, and Opera 9.5.</p>
    19 <p>It uses Smarty templates so you should be able to customize the HTML to
    19 <p>It uses Smarty templates so you should be able to customize the HTML to
    20    your needs. The template file is /themes/funkymonkey/playlist.tpl. There's
    20    your needs. The template file is /themes/funkymonkey/playlist.tpl. There's
    21    also a theme called iphone which is optimized for use on Apple's touch
    21    also a theme called iphone which is optimized for use on Apple's touch
    22    screen based mobile devices. Now your iPod&reg; can control music other than
    22    screen based mobile devices. Now your iPod&reg; can control music other than
    23    its own :-P</p>
    23    its own :-P</p>
    37   <li>The socket it listens on doesn't get fully closed until about a minute
    37   <li>The socket it listens on doesn't get fully closed until about a minute
    38       after you interrupt the script. This means that when you hit stop in
    38       after you interrupt the script. This means that when you hit stop in
    39       the script manager, you won't be able to start Greyhound again for about
    39       the script manager, you won't be able to start Greyhound again for about
    40       60 seconds. I checked everything and socket_shutdown() and socket_close()
    40       60 seconds. I checked everything and socket_shutdown() and socket_close()
    41       are being called properly, so I don't know why it's failing.</li>
    41       are being called properly, so I don't know why it's failing.</li>
    42   <li>The playlist isn't reloaded properly. This is because each of the child
    42   <li>As of version 0.1 alpha 3, the playlist should be updated properly. If
    43       threads have the playlist cached in memory, and I haven't figured out a
    43       you change your playlist but don't see the changes show up in Greyhound
    44       way to make them all reread the playlist file. Eventually I'll have code
    44       after about 1-2 minutes, please report it as a bug. Please see
    45       in there that keeps track of the children and sends a SIGHUP to each of
    45       <a href="http://forum.enanocms.org/post/14/#p14">this forum post</a>
    46       them and have that fire an event that reparses the playlist file. The
    46       for more information.</li>
    47       only real way to fix this for now is to disable multi-threaded mode by
       
    48       setting $allow_fork to false at the top of greyhound.php.</li>
       
    49 </ul>
    47 </ul>
    50 
    48 
    51 <p>
    49 <p>
    52   <b>Author</b><br />
    50   <b>Author</b><br />
    53   Dan Fuhry &lt;<a href="mailto:dan@enanocms.org">dan@enanocms.org</a>&gt;<br />
    51   Dan Fuhry &lt;<a href="mailto:dan@enanocms.org">dan@enanocms.org</a>&gt;<br />