philippe44/LMS-Groups

Is the surrogate check the same as what _isMaster is trying to do?

Closed this issue · 3 comments

my $surrogate = _Surrogate($self);

I don’t think so. The surrogate is the first device that is not the master and that is active. As the streaming controller, I receive track started event from all sync members, but of course not for the virtual player, as such events are generated by the real player using slimproto. So I need to select one player, always the same and to duplicate it’s behavior. The virtual is a shadow of this real player or the real player is a surrogate of the virtual player. So isMaster will be true for all players except the group where test with surrogate will only be true if the track start event comes from the surrogate, in which case I want to mimic it.

Would you mind if I close this one?

Was wondering about this, too. Closing.