If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Well, it will still be a hit and miss as, again, the LMS players play ... whenever they play. So it might swing +/- 300ms or more, but you will not have any certainty, LMS time cannot be controlled by an external source with the existing API. As long as one of the entities contains a random time element, there is nothing you can do for the whole system.

My latest version of Shairtunes2W includes a "AirPlay latency" that you can play with, it's made for another purpose but it should affect the system the way you want.

But again, understand that what you want to do cannot be achieve in a reliable way with the existing LMS interface. You'll get sometimes close, sometimes not.

I'll have a play. Incidentally, there's no settings link for your ShairTunes2 (fork) line in the list when I click on the Plugins tab in the LMS web settings GUI. I have to click on settings for some other plugin, then select ShairTunes2 (fork) from the drop down list. Once I'm there I notice the info hint for 'Airplay latency (ms)' reads: "Set the duration of the AirPlay buffer. Low value means faster start but more shuttering". Can I use this value therefore to influence the delay before the iOS device starts its video playback?

Edit: 600 ms seems bloody close in my eyes when outputting to my SB Radio, until that is the audio playback randomly pauses for a couple of seconds after a few minutes playback, throwing it all out. Oh well.

I'll have a play. Incidentally, there's no settings link for your ShairTunes2 (fork) line in the list when I click on the Plugins tab in the LMS web settings GUI. I have to click on settings for some other plugin, then select ShairTunes2 (fork) from the drop down list.

The "normal" way to access to a plugin settings is rather to go to the "advanced" tab in LMS' settings and then choose the plugin in the dropdown list

Once I'm there I notice the info hint for 'Airplay latency (ms)' reads: "Set the duration of the AirPlay buffer. Low value means faster start but more shuttering". Can I use this value therefore to influence the delay before the iOS device starts its video playback?

Edit: 600 ms seems bloody close in my eyes when outputting to my SB Radio, until that is the audio playback randomly pauses for a couple of seconds after a few minutes playback, throwing it all out. Oh well.

Yes, this is the right parameter and it's expected that below ~500ms shuttering happens. It's because the plugin has to build a buffer of the airplay frames. Such RTP frames are sent using UDP protocol, so no guaranteed delivery. There is a mechanism to ask again for missed frames, but it means that you must do buffering to give you a chance to ask for and received the missed ones because if you have a hole of 100 frames between say frame 900 and 1000 but you've already sent frame 1000 to LMS, then it's over because the interface with LMS is HTTP, so frame numbers do not exists, ordering is implicit by order of sending HTTP data.

Anyway, you can also tweak the "buffer level" parameter which adjust buffering inside LMS this time. Normally it does not affect playback start in a deterministic way, but here it should because the source is hard realtime

I'm also getting the 'connection reset by host' error. I wonder if this is an iOS 10 thing.

Sent from my iPhone using Tapatalk

This thread is (very) old but was there ever a solution to this? I have installed v.0.72.10 on my Windows 7 PC and am having the same symptoms. No errors in the log and I can see my players (both Squeezebox Touch and Squeezebox Classic) from my devices. When I start playing to a SB Touch I see "Connection reset by local host airplay://<IP of LMS>:55596/<bunch of characters>_stream.flc" on the screen.

I have tried it on devices with iOS 5.1.1, 9.3.5, and 10.3.3 and get the same behaviour. My Windows Firewall is off for these tests. My SB Touch software is on 7.7.3 r16676 (latest).

Any ideas? Any way to debug from the Touch as to why it is not able to connect?

Announce: ShairTunes2 plugin - Airtunes on your LMS

Originally Posted by jkriese

This thread is (very) old but was there ever a solution to this? I have installed v.0.72.10 on my Windows 7 PC and am having the same symptoms. No errors in the log and I can see my players (both Squeezebox Touch and Squeezebox Classic) from my devices. When I start playing to a SB Touch I see "Connection reset by local host airplay://:55596/_stream.flc" on the screen.

I have tried it on devices with iOS 5.1.1, 9.3.5, and 10.3.3 and get the same behaviour. My Windows Firewall is off for these tests. My SB Touch software is on 7.7.3 r16676 (latest).

Any ideas? Any way to debug from the Touch as to why it is not able to connect?

Please go to the active thread for responses. Your system should work without issue. Get a log of the server.log and one of the player that fails (see the settings of shairtunes2W for helper log). Give me LMS number as a well.