|
|
@ -77,6 +77,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Gets Dlna media receiver registrar xml.
|
|
|
|
/// Gets Dlna media receiver registrar xml.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Dlna media receiver registrar xml returned.</response>
|
|
|
|
/// <returns>Dlna media receiver registrar xml.</returns>
|
|
|
|
/// <returns>Dlna media receiver registrar xml.</returns>
|
|
|
|
[HttpGet("{serverId}/MediaReceiverRegistrar")]
|
|
|
|
[HttpGet("{serverId}/MediaReceiverRegistrar")]
|
|
|
|
[HttpGet("{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar", Name = "GetMediaReceiverRegistrar_2")]
|
|
|
|
[HttpGet("{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar", Name = "GetMediaReceiverRegistrar_2")]
|
|
|
@ -94,6 +95,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Gets Dlna media receiver registrar xml.
|
|
|
|
/// Gets Dlna media receiver registrar xml.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Dlna media receiver registrar xml returned.</response>
|
|
|
|
/// <returns>Dlna media receiver registrar xml.</returns>
|
|
|
|
/// <returns>Dlna media receiver registrar xml.</returns>
|
|
|
|
[HttpGet("{serverId}/ConnectionManager")]
|
|
|
|
[HttpGet("{serverId}/ConnectionManager")]
|
|
|
|
[HttpGet("{serverId}/ConnectionManager/ConnectionManager", Name = "GetConnectionManager_2")]
|
|
|
|
[HttpGet("{serverId}/ConnectionManager/ConnectionManager", Name = "GetConnectionManager_2")]
|
|
|
@ -111,8 +113,12 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Process a content directory control request.
|
|
|
|
/// Process a content directory control request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
[HttpPost("{serverId}/ContentDirectory/Control")]
|
|
|
|
[HttpPost("{serverId}/ContentDirectory/Control")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessContentDirectoryControlRequest([FromRoute, Required] string serverId)
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessContentDirectoryControlRequest([FromRoute, Required] string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _contentDirectory).ConfigureAwait(false);
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _contentDirectory).ConfigureAwait(false);
|
|
|
@ -122,8 +128,12 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Process a connection manager control request.
|
|
|
|
/// Process a connection manager control request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
[HttpPost("{serverId}/ConnectionManager/Control")]
|
|
|
|
[HttpPost("{serverId}/ConnectionManager/Control")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessConnectionManagerControlRequest([FromRoute, Required] string serverId)
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessConnectionManagerControlRequest([FromRoute, Required] string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _connectionManager).ConfigureAwait(false);
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _connectionManager).ConfigureAwait(false);
|
|
|
@ -133,8 +143,12 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Process a media receiver registrar control request.
|
|
|
|
/// Process a media receiver registrar control request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
/// <returns>Control response.</returns>
|
|
|
|
[HttpPost("{serverId}/MediaReceiverRegistrar/Control")]
|
|
|
|
[HttpPost("{serverId}/MediaReceiverRegistrar/Control")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessMediaReceiverRegistrarControlRequest([FromRoute, Required] string serverId)
|
|
|
|
public async Task<ActionResult<ControlResponse>> ProcessMediaReceiverRegistrarControlRequest([FromRoute, Required] string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _mediaReceiverRegistrar).ConfigureAwait(false);
|
|
|
|
return await ProcessControlRequestInternalAsync(serverId, Request.Body, _mediaReceiverRegistrar).ConfigureAwait(false);
|
|
|
@ -144,11 +158,15 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
[HttpSubscribe("{serverId}/MediaReceiverRegistrar/Events")]
|
|
|
|
[HttpSubscribe("{serverId}/MediaReceiverRegistrar/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/MediaReceiverRegistrar/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/MediaReceiverRegistrar/Events")]
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessMediaReceiverRegistrarEventRequest(string serverId)
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessMediaReceiverRegistrarEventRequest(string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ProcessEventRequest(_mediaReceiverRegistrar);
|
|
|
|
return ProcessEventRequest(_mediaReceiverRegistrar);
|
|
|
@ -158,11 +176,15 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
[HttpSubscribe("{serverId}/ContentDirectory/Events")]
|
|
|
|
[HttpSubscribe("{serverId}/ContentDirectory/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/ContentDirectory/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/ContentDirectory/Events")]
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessContentDirectoryEventRequest(string serverId)
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessContentDirectoryEventRequest(string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ProcessEventRequest(_contentDirectory);
|
|
|
|
return ProcessEventRequest(_contentDirectory);
|
|
|
@ -172,11 +194,15 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// Processes an event subscription request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
/// <param name="serverId">Server UUID.</param>
|
|
|
|
|
|
|
|
/// <response code="200">Request processed.</response>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
/// <returns>Event subscription response.</returns>
|
|
|
|
[HttpSubscribe("{serverId}/ConnectionManager/Events")]
|
|
|
|
[HttpSubscribe("{serverId}/ConnectionManager/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/ConnectionManager/Events")]
|
|
|
|
[HttpUnsubscribe("{serverId}/ConnectionManager/Events")]
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] // Ignore in openapi docs
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")]
|
|
|
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
|
|
[Produces(MediaTypeNames.Text.Xml)]
|
|
|
|
|
|
|
|
[ProducesFile(MediaTypeNames.Text.Xml)]
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessConnectionManagerEventRequest(string serverId)
|
|
|
|
public ActionResult<EventSubscriptionResponse> ProcessConnectionManagerEventRequest(string serverId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ProcessEventRequest(_connectionManager);
|
|
|
|
return ProcessEventRequest(_connectionManager);
|
|
|
|