Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,356

    Possible to play a stream in applet without LMS/mysqueezebox.com ?

    Have anyone made any experiments with playing a stream in an applet without going through LMS or mysqueezebox.com and their "playlist xxx" commands ?
    I've found decode.c and Playback.lua and suspect I need to do something similar or is there an easier way to accomplish it ?
    Looks like decode.c isn't dependent on the server and SlimProto but Playback.lua is if I interpret the code correctly. I like to support both remote http streams and local file streams (for files on the USB drive attached to a Touch), but at the moment I'm mostly interested in supporting remote http streams.

    Would be great with a function which I can just provide the URL of the stream to, but I suspect something like that doesn't exist ?
    Have anyone made a try of doing something like this so you can provide some simple example or other guidance or are able to provide some information of what needs to be done to accomplish it ?

    I realize I can probably not get support for synchronized playback between multiple players this way but I can live without that at the moment.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Posts
    6,980

    Possible to play a stream in appletwithoutLMS/mysqueezebox.com ?

    Easiest way is to use LMS/mysqueezebox.com to manage the playback as
    otherwise you fight it.

    If you want to play a custom stream type then the easiest way is to use the
    spdirect protocol handler (spdr:// url)

    See the BBCRadio applet again (spdr was added to allow this....)

    The applet decides what it wants to play, sends a playback command for it
    but uses an spdr url which allows the applet to register a protocol handler
    in squeezeplay to initiate the actual stream.

    Depends on the actual stream you want to play though.

    -----Original Message-----
    From: erland
    Sent: Monday, July 16, 2012 6:54 PM
    To: developers (AT) lists (DOT) slimdevices.com
    Subject: [Developers] Possible to play a stream in applet
    withoutLMS/mysqueezebox.com ?


    Have anyone made any experiments with playing a stream in an applet
    without going through LMS or mysqueezebox.com and their "playlist xxx"
    commands ?
    I've found decode.c and Playback.lua and suspect I need to do something
    similar or is there an easier way to accomplish it ?
    Looks like decode.c isn't dependent on the server and SlimProto but
    Playback.lua is if I interpret the code correctly. I like to support
    both remote http streams and local file streams (for files on the USB
    drive attached to a Touch), but at the moment I'm mostly interested in
    supporting remote http streams.

    Would be great with a function which I can just provide the URL of the
    stream to, but I suspect something like that doesn't exist ?
    Have anyone made a try of doing something like this so you can provide
    some simple example or other guidance or are able to provide some
    information of what needs to be done to accomplish it ?

    I realize I can probably not get support for synchronized playback
    between multiple players this way but I can live without that at the
    moment.


    ------------------------------------------------------------------------
    erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
    View this thread: http://forums.slimdevices.com/showthread.php?t=95833


  3. #3
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,356
    Quote Originally Posted by Triode View Post
    Easiest way is to use LMS/mysqueezebox.com to manage the playback as
    otherwise you fight it.

    If you want to play a custom stream type then the easiest way is to use the
    spdirect protocol handler (spdr:// url)

    See the BBCRadio applet again (spdr was added to allow this....)

    The applet decides what it wants to play, sends a playback command for it
    but uses an spdr url which allows the applet to register a protocol handler
    in squeezeplay to initiate the actual stream.

    Depends on the actual stream you want to play though.
    Just to make sure I understand this correctly, does the BBCRadio applet play the stream without using LMS/mysqueezebox.com or does it only use spdr to allow it to retrieve the a temporary/dynamic url that should be used when streaming with LMS/mysqueezebox.com ?

    In my case it's permanent http url's, so it's not anything strange, it's just that for this specific use case I'm working on I would prefer to not have to rely on that LMS or mysqueezebox.com is accessible when the stream is about to be played.
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Posts
    6,980

    Possible to play a stream in appletwithoutLMS/mysqueezebox.com ?

    OK - that's a different case. You can definitely call the playback code
    directly - looking at Playback.lua and the second half of BBCRadio for how I
    start a stream, but you may want to change autostart. You will need to get
    the media url and create the http request yourself + specify the codec etc
    in the parameters you send to decode:start()

    The other issue you will have is that the now playing display will also be
    assuming a connection to LMS/mysqueezebox.com

    That said - turning squeezeplay into a standalone application is an
    interesting direction which others are likely to be interested in.... I
    suspect long term this would be best served with a custom Playback.lua which
    is not driven from slimproto.....

    -----Original Message-----

    Just to make sure I understand this correctly, does the BBCRadio applet
    play the stream without using LMS/mysqueezebox.com or does it only use
    spdr to allow it to retrieve the a temporary/dynamic url that should be
    used when streaming with LMS/mysqueezebox.com ?

    In my case it's permanent http url's, so it's not anything strange, it's
    just that for this specific use case I'm working on I would prefer to
    not have to rely on that LMS or mysqueezebox.com is accessible when the
    stream is about to be played.


Posting Permissions

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