public void Stop() { var amfWriter = new AmfWriter(); amfWriter.WriteString("deleteStream"); amfWriter.WriteNumber(7); amfWriter.WriteNull(); amfWriter.WriteNumber(1); SendAmf(amfWriter); tcpClient.Close(); }
private void createStream() { var writer = new AmfWriter(); writer.WriteString("createStream"); writer.WriteNumber(4); writer.WriteNull(); SendAmf(writer); }
private void publish(string id) { var writer = new AmfWriter(); writer.WriteString("publish"); writer.WriteNumber(0); writer.WriteNull(); writer.WriteString(id); writer.WriteString("live"); SendAmf(writer); }
private void Connect(string type = "app") { var writer = new AmfWriter(); writer.WriteString("connect"); writer.WriteNumber(1); var connectObject = new AmfObject(); connectObject.Strings.Add("app", "app"); writer.WriteObject(connectObject); SendAmf(writer); }