internal void UnsubscribeFromIpChannelLayer(CasparCgPlayout instance) { List <CasparCgPlayout> layerSubscribers = getSubscribtionsForChannelLayer(instance.ListenedIp, instance.WatchedChannel, instance.WatchedLayer); layerSubscribers.RemoveAll(i => (i == instance)); List <CasparCgPlayout> channelSubscribers = getSubscribtionsForChannel(instance.ListenedIp, instance.WatchedChannel); channelSubscribers.RemoveAll(i => (i == instance)); }
internal void SubscribeToIpChannelLayer(CasparCgPlayout instance) { List <CasparCgPlayout> layerSubscribers = getSubscribtionsForChannelLayer(instance.ListenedIp, instance.WatchedChannel, instance.WatchedLayer); if (!layerSubscribers.Contains(instance)) { layerSubscribers.Add(instance); } List <CasparCgPlayout> channelSubscribers = getSubscribtionsForChannel(instance.ListenedIp, instance.WatchedChannel); if (!channelSubscribers.Contains(instance)) { channelSubscribers.Add(instance); } initOscServer(); }