using MediaBrowser.Common.Net;
using ServiceStack.Web;
using System.Collections.Generic;
using System.IO;
namespace MediaBrowser.Api.Playback
{
///
/// Class StaticRemoteStreamWriter
///
public class StaticRemoteStreamWriter : IStreamWriter, IHasOptions
{
///
/// The _input stream
///
private readonly HttpResponseInfo _response;
///
/// The _options
///
private readonly IDictionary _options = new Dictionary();
public StaticRemoteStreamWriter(HttpResponseInfo response)
{
_response = response;
}
///
/// Gets the options.
///
/// The options.
public IDictionary Options
{
get { return _options; }
}
///
/// Writes to.
///
/// The response stream.
public void WriteTo(Stream responseStream)
{
_response.Content.CopyTo(responseStream, 819200);
}
}
}