mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-18 03:19:06 -07:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using MediaBrowser.Common.Net;
|
|
using MediaBrowser.Controller.Configuration;
|
|
using MediaBrowser.Controller.Dlna;
|
|
using MediaBrowser.Dlna.Service;
|
|
using MediaBrowser.Model.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Dlna.MediaReceiverRegistrar
|
|
{
|
|
public class MediaReceiverRegistrar : BaseService, IMediaReceiverRegistrar, IDisposable
|
|
{
|
|
private readonly IServerConfigurationManager _config;
|
|
|
|
public MediaReceiverRegistrar(ILogger logger, IHttpClient httpClient, IServerConfigurationManager config)
|
|
: base(logger, httpClient)
|
|
{
|
|
_config = config;
|
|
}
|
|
|
|
public string GetServiceXml(IDictionary<string, string> headers)
|
|
{
|
|
return new MediaReceiverRegistrarXmlBuilder().GetXml();
|
|
}
|
|
|
|
public ControlResponse ProcessControlRequest(ControlRequest request)
|
|
{
|
|
return new ControlHandler(
|
|
_config,
|
|
Logger)
|
|
.ProcessControlRequest(request);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|