public MediaStream(StreamName streamName) { _subscribers = new ConcurrentDictionary <string, IChannel>(); _httpFLvSubscribers = new List <IChannel>(); _content = new List <AbstractRtmpMediaMessage>(); _streamName = streamName; if (RtmpConfig.Instance.IsSaveFlvFile) { CreateFileStream(); } }
public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } StreamName other = (StreamName)obj; if (App == null) { if (other.App != null) { return(false); } } else if (!App.Equals(other.App)) { return(false); } if (Name == null) { if (other.Name != null) { return(false); } } else if (!Name.Equals(other.Name)) { return(false); } return(true); }