private void PostChannelInfo(AtomCollection parent, Channel channel) { var atom = new AtomCollection(); atom.SetChanID(channel.ChannelID); atom.SetChanBCID(PeerCast.BroadcastID); if (channel.ChannelInfo != null) { atom.SetChanInfo(channel.ChannelInfo.Extra); } if (channel.ChannelTrack != null) { atom.SetChanTrack(channel.ChannelTrack.Extra); } parent.SetChan(atom); }
private void PostChannelInfo(AtomCollection parent, Channel channel) { var atom = new AtomCollection(); atom.SetChanID(channel.ChannelID); atom.SetChanBCID(PeerCast.BroadcastID); if (channel.ChannelInfo!=null) atom.SetChanInfo(channel.ChannelInfo.Extra); if (channel.ChannelTrack!=null) atom.SetChanTrack(channel.ChannelTrack.Extra); parent.SetChan(atom); }