Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member max.spicer's Avatar
    Join Date
    Apr 2005
    Location
    York, United Kingdom
    Posts
    1,661

    What does $client->isPlayer() do?

    For which devices would $client->isPlayer() return false? Do such devices have playlists, volume, power state etc?

    Cheers,

    Max
    Some people think the title of this song is irrelevant,
    but it's not irrelevant - it's a hippopotamus.

  2. #2
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,396

    What does $client->isPlayer() do?

    On May 18, 2007, at 1:58 PM, max.spicer wrote:

    >
    > For which devices would $client->isPlayer() return false? Do such
    > devices have playlists, volume, power state etc?


    I believe isPlayer is only false for HTTP streaming clients
    (stream.mp3). See Slim::Player::HTTP.

  3. #3
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    What does $client->isPlayer() do?

    Quoting "max.spicer"
    <max.spicer.2qsj1z1179511202 (AT) no-mx (DOT) forums.slimdevices.com>:

    >
    > For which devices would $client->isPlayer() return false? Do such
    > devices have playlists, volume, power state etc?


    http connections would be the only real case. Anything with no
    display, no volume controls etc. Mostly it exists to prevent use of
    methods on client objects that won't be present for non-'players'

    See Slim/Player/HTTP.pm

    -kdf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •