private void sendToken() { if (_usher.Streams.Count == 0) return; AmfWriter writer = new AmfWriter(); writer.WriteString("NetStream.Authenticate.UsherToken"); writer.WriteNumber(0); writer.WriteNull(); writer.WriteString(_usher.Streams[0].Token); RtmpSharp2.Abstract.CommandMessage message = new CommandMessage(writer); SendMessage(message); SendMessage(new CreateStream()); SendMessage(new Play(_usher.Streams[0].PlayStream)); }