public RTMPOutputStream(
PeerCast peercast,
System.IO.Stream input_stream,
System.IO.Stream output_stream,
System.Net.EndPoint remote_endpoint,
AccessControlInfo access_control,
Guid channel_id,
byte[] header)
{
input_stream.ReadTimeout = System.Threading.Timeout.Infinite;
this.peerCast = peercast;
var stream = new ConnectionStream(new BufferedReadStream(input_stream, 8192, header), output_stream);
this.inputStream = stream;
this.outputStream = stream;
stream.WriteTimeout = 10000;
this.remoteEndPoint = remote_endpoint;
this.accessControl = access_control;
this.connection = new RTMPPlayConnection(this, this.inputStream, this.outputStream);
}