Home of the Squeezebox™ & Transporter® network music players.
Page 28 of 39 FirstFirst ... 18262728293038 ... LastLast
Results 271 to 280 of 385
  1. #271
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,098
    Quote Originally Posted by chincheta0815 View Post
    Well, actually I already did that as I am working on a way to steer some devices... Therefore I use your LMS-toUPNP bridge code. I started and got the thing discovered via UPNP/SOAP. Now I need to communicate to the device using http GET, POST, SEND requests. I have to send the request and work wit the response from the device. Everything should respect async communication and use threads...

    Are there any functions already implemented I could use for these tasks?
    Is there a library available for that?
    Do you need more info via email?

    Thanks a lot in advance.
    We should probably move to the development thread. If the requests/responses are simple enough, then I just build them manually. You can see that in my airplay bridge (squeeze2raop.c, ActiveRemoteThread). Other than that, you probably can use the http parser that I use in the shairtunes2W plugin (see http.c and https://github.com/nodejs/http-parser) at least for the response processing. Other than that, I don't have a good proposal, but scanning github would help
    Last edited by philippe_44; 2017-04-16 at 11:12.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  2. #272
    Senior Member
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    226
    Quote Originally Posted by philippe_44 View Post
    We should probably move to the development thread. If the requests/responses are simple enough, then I just build them manually. You can see that in my airplay bridge (squeeze2raop.c, ActiveRemoteThread). Other than that, you probably can use the http parser that I use in the shairtunes2W plugin (see http.c and https://github.com/nodejs/http-parser) at least for the response processing. Other than that, I don't have a good proposal, but scanning github would help
    Okay I moved to: http://forums.slimdevices.com/showth...103#post881103

    I put some info in there. I would really appreciate your help a lot!

  3. #273
    Junior Member
    Join Date
    Feb 2009
    Posts
    15
    Quote Originally Posted by philippe_44 View Post
    The [log] files are created only when playback actually starts. Can you check in Windows processes that 2 instances of "dns-sd" are actually running? Can you also use the tool here https://github.com/philippe44/mDNS-SD to see what devices are being announced? Take the Windows version and in a command box, run "mdnssd-win _raop._tcp.local"
    Thank you for the prompt reply!

    Problem solved - Bonjour service was disabled on the server machine. Now everything works fine. Sorry for disturbance but your questions pointed me in the right direction to check.

    By the way 'mdnssd-win _raop._tcp.local' shows shairtunes2w players only when hardware airplay device is presented on the network.
    Last edited by SkyWalker2; 2017-04-17 at 08:14.

  4. #274
    Junior Member
    Join Date
    Feb 2009
    Posts
    15
    Dear philippe_44,

    Thank you for the marvelous plugin! I even was able to create stereo pair from my radios and stream to them as to single airplay device.

    Would it be possible to announce group of sb players as separate airplay speaker? With purpose to let user choose streaming to individual players or groups?

    By group I mean group of synced players in terms of LMS. Alternatively it could be grouping inside your plugin settings. Say via advanced LMS tab.

    For example I have two SB Radios and would like to choose therm as Airplay target individually or like a preset group with dedicated left, right channels each routed to a corresp SB Radio.

  5. #275
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,098
    Quote Originally Posted by SkyWalker2 View Post
    Dear philippe_44,

    Thank you for the marvelous plugin! I even was able to create stereo pair from my radios and stream to them as to single airplay device.

    Would it be possible to announce group of sb players as separate airplay speaker? With purpose to let user choose streaming to individual players or groups?

    By group I mean group of synced players in terms of LMS. Alternatively it could be grouping inside your plugin settings. Say via advanced LMS tab.

    For example I have two SB Radios and would like to choose therm as Airplay target individually or like a preset group with dedicated left, right channels each routed to a corresp SB Radio.
    What you're asking here is is the idea of "grouped players represented by virtual players". Unfortunately this concept is not supported natively by LMS, so replicating it would be a lot of work, from a frontend (UI) and backend point of view. If very likely doable, but it's too much for me as I already have a lot of plugins in LMS to support ...
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  6. #276

    Having isues getting Shairtunes running on Win 7, LMS 7.8.1

    Dear philippe_44,

    I fail to get Shairtunes running on my system (LMS 7.8.1 on Win 7 32 Bit, pearl 5.14.1 - MSWin32-x86-multi-thread). Installation seems to have been completed successully. When I (re-)start LMS I continously get the Windows error dialog "the application was unable to start correctly 0xC150002". The plugin does not create any logs (even if set to 'debug' in LMS web UI) since it does not seem to be running correctly in the first place; the server log reads:

    Code:
    [17-04-27 21:41:49.1832] main::init (368) Starting Logitech Media Server (v7.8.1, 1443165013, Mon Sep 28 03:04:38 CUT 2015) perl 5.014001
    [17-04-27 21:42:03.2136] [ ... YouTube plugin warning ...]
    [17-04-27 21:42:14.2517] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-04-27 21:42:14.3232] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-04-27 21:42:14.3936] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-04-27 21:42:14.3946] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: C:\PROGRA~2\SQUEEZ~1\Cache\INSTAL~1\Plugins\SHAIRT~1\Bin\SHAIRP~1.EXE
    [17-04-27 21:42:14.4246] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::SqueezePlay=ARRAY(0x6e22b54) with proc Proc::Background=HASH(0xaab3754)
    [17-04-27 21:42:15.1971] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-04-27 21:42:15.2876] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-04-27 21:42:15.3669] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-04-27 21:42:15.3678] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: C:\PROGRA~2\SQUEEZ~1\Cache\INSTAL~1\Plugins\SHAIRT~1\Bin\SHAIRP~1.EXE
    [17-04-27 21:42:15.3977] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::Receiver=ARRAY(0xaaae944) with proc Proc::Background=HASH(0xab8ee34)
    [17-04-27 21:42:17.1367] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-04-27 21:42:17.2835] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-04-27 21:42:17.3868] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-04-27 21:42:17.3879] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: C:\PROGRA~2\SQUEEZ~1\Cache\INSTAL~1\Plugins\SHAIRT~1\Bin\SHAIRP~1.EXE
    [17-04-27 21:42:17.4243] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::Receiver=ARRAY(0xab0968c) with proc Proc::Background=HASH(0xab07a8c)
    I don't see any airplay targets on my iOS devices (iPhone 6 with iOS 9.3.5, iPad mini 3 with iOS 10.2.1).

    Do you have an idea what's going wrong here? Any help would be greatly appreciated!

    I already tried to
    - run "shairport_helper-win.exe" manually (also as admin) - same "0xC150002" error message as above
    - installed MS Visual Studio 2015 C++ redistributable
    - updated Visual Studio security patches

    Many thanks for your help!

    Cheers,

    Ben

  7. #277
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,098
    Quote Originally Posted by superbonham View Post
    Dear philippe_44,

    I fail to get Shairtunes running on my system (LMS 7.8.1 on Win 7 32 Bit, pearl 5.14.1 - MSWin32-x86-multi-thread). Installation seems to have been completed successully. When I (re-)start LMS I continously get the Windows error dialog "the application was unable to start correctly 0xC150002". The plugin does not create any logs (even if set to 'debug' in LMS web UI) since it does not seem to be running correctly in the first place; the server log reads:

    I don't see any airplay targets on my iOS devices (iPhone 6 with iOS 9.3.5, iPad mini 3 with iOS 10.2.1).

    Do you have an idea what's going wrong here? Any help would be greatly appreciated!

    I already tried to
    - run "shairport_helper-win.exe" manually (also as admin) - same "0xC150002" error message as above
    - installed MS Visual Studio 2015 C++ redistributable
    - updated Visual Studio security patches

    Many thanks for your help!

    Cheers,

    Ben
    I don't know what this error is. If the helper fails to launch from command line, it's something I don't have much control on. It's also logical that you don't see airplay targets because the helper should be used for broadcasting them (as no other method is found). Note that individual debug logs are created only when playback happens

    I don't rely on other packages except the DLLs I provide. I ran it under WinXP and it did not spit an error, so it's not a old/new 32/64 bits environment issue. At this point, it looks like there is something, maybe a antivirus conflict with your system.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  8. #278
    I just found on ubuntu I need to allow firewall port 8000/tcp to get this to work.

  9. #279
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,098
    Quote Originally Posted by atca View Post
    I just found on ubuntu I need to allow firewall port 8000/tcp to get this to work.
    Be careful because 8000 is the 1st port tried, but if it is not available, the helper will try 8001, 8002 ...
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  10. #280

    Help needed for QNAP

    Dear Philippe,

    I think I will need your kind help for successfully running the plugin on a QNAP HS-251 running 4.2.0, and LMS 7.9.0 nightly (I still have to move to the official 7.9.0).
    I have successfully installed Crypt::OpenSSL::Bignum, Crypt::OpenSSL::Random, Crypt::OpenSSL::RSA and all the compile errors at plugin install and LMS restart time that I had in the first attempts have disappeared. (In fact, in doubt I installed also IO-Socket-INET6, but nothing changed).
    LMS and the plugin seem to start correctly, and I can see all my squeezeboxes as Airplay devices from my iPhone. However, when I try to connect, I get the message "impossible to connect to Squeezebox etc." on the iPhone.
    I attach here the server log at LMS startup.
    Code:
    [17-05-01 20:40:43     ] ssctrl Starting SqueezeboxServer 7.9.0-1475786002.
    [17-05-01 20:40:44     ] ssctrl Command line = /opt/ssods4/var/home/SqueezeboxServer/slimserver.pl  --daemon --pidfile /opt/ssods4/var/home/SqueezeboxServer/Cache/squeezecenter.pid --cachedir /opt/ssods4/var/home/SqueezeboxServer/Cache --logdir /opt/ssods4/var/home/SqueezeboxServer/Logs --prefsdir /opt/ssods4/var/home/SqueezeboxServer/Prefs --noupnp --priority 0 --user ssods --group ssods --httpport 9001 
    [17-05-01 20:40:45.8892] main::init (384) Starting Logitech Media Server (v7.9.0, 1475786002, Wed Oct 12 04:07:07 UTC 2016) perl 5.010000 - i686-linux-thread-multi
    [17-05-01 20:40:45.8890] main::init (384) Starting Logitech Media Server (v7.9.0, 1475786002, Wed Oct 12 04:07:07 UTC 2016) perl 5.010000 - i686-linux-thread-multi
    [17-05-01 20:40:45     ] ssctrl SqueezeboxServer started.
    [17-05-01 20:40:45     ] ssctrl Setting nice level to +0
    [17-05-01 20:40:48.1244] Slim::Utils::Misc::msg (1244) Warning: [20:40:48.1239] Integer overflow in hexadecimal number at /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/YouTube/WebM.pm line 544.
    [17-05-01 20:40:48.9015] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-05-01 20:40:48.9020] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-05-01 20:40:48.9025] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-05-01 20:40:48.9029] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-i386-linux
    [17-05-01 20:40:48.9076] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::SqueezePlay=ARRAY(0xb7e3ab8) with proc Proc::Background=HASH(0xb86e228)
    [17-05-01 20:40:48.9212] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-05-01 20:40:48.9217] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-05-01 20:40:48.9221] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-05-01 20:40:48.9225] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-i386-linux
    [17-05-01 20:40:48.9271] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::SqueezePlay=ARRAY(0xb86bb80) with proc Proc::Background=HASH(0xb7e91d8)
    [17-05-01 20:40:48.9772] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-05-01 20:40:48.9777] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-05-01 20:40:48.9781] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-05-01 20:40:48.9785] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-i386-linux
    [17-05-01 20:40:48.9833] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::SqueezePlay=ARRAY(0xb86e4b8) with proc Proc::Background=HASH(0xb86d5b0)
    [17-05-01 20:40:49.0090] Plugins::ShairTunes2W::Plugin::publishPlayer (356) avahi-publish-player not in path
    [17-05-01 20:40:49.0095] Plugins::ShairTunes2W::Plugin::publishPlayer (364) dns-sd not in path
    [17-05-01 20:40:49.0099] Plugins::ShairTunes2W::Plugin::publishPlayer (372) mDNSPublish not in path
    [17-05-01 20:40:49.0103] Plugins::ShairTunes2W::Plugin::publishPlayer (374) using built-in helper: /opt/ssods4/var/home/SqueezeboxServer/Cache/InstalledPlugins/Plugins/ShairTunes2W/Bin/shairport_helper-i386-linux
    [17-05-01 20:40:49.0150] Plugins::ShairTunes2W::Plugin::playerSubscriptionChange (267) create client Slim::Player::SqueezePlay=ARRAY(0xb6cff80) with proc Proc::Background=HASH(0xb75b0c8)
    I don't see any obvious error (I have seen similar logs from other users in this thread), and I would be glad if I could provide you some more information for resolving this. Is there any other logs to activate? Activating ShairTunes2W plugin log does not show anything, no file is created.
    I have seen you mentioned that you use perl 5.14 syntax. QNAP installation only has 5.10, however there should be compile or runtime errors in case of a non-understood construct?
    Connections to the QNAP are unrestricted, and there is no restriction whatsoever in the router within my home network.
    I would be of course ready to provide more info, if you may instruct me how to do and what you might need.

Posting Permissions

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