public RTMPOutputStream( PeerCast peercast, ConnectionStream connection, AccessControlInfo access_control, Guid channel_id) { connection.ReadTimeout = Timeout.Infinite; connection.WriteTimeout = 10000; this.peerCast = peercast; this.inputStream = connection; this.outputStream = connection; this.accessControl = access_control; this.connection = new RTMPPlayConnection(this, this.inputStream, this.outputStream); }
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); }
public RTMPContentSink(RTMPPlayConnection conn) { this.connection = conn; }
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; this.inputStream = new RateCountedStream(new BufferedReadStream(input_stream, 8192, header), TimeSpan.FromMilliseconds(1000)); this.outputStream = new RateCountedStream(output_stream, TimeSpan.FromMilliseconds(1000)); this.remoteEndPoint = remote_endpoint; this.accessControl = access_control; this.connection = new RTMPPlayConnection(this, this.inputStream, this.outputStream); }