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); }
public void Stop() { var amfWriter = new AmfWriter(); amfWriter.WriteString("deleteStream"); amfWriter.WriteNumber(7); amfWriter.WriteNull(); amfWriter.WriteNumber(1); SendAmf(amfWriter); tcpClient.Close(); }