mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
added more remote control commands
This commit is contained in:
parent
c0801e4f6d
commit
bb5386bb3a
43 changed files with 816 additions and 149 deletions
|
|
@ -57,18 +57,6 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||
return socket;
|
||||
}
|
||||
|
||||
public Task SendSystemCommand(SystemCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
var socket = GetActiveSocket();
|
||||
|
||||
return socket.SendAsync(new WebSocketMessage<string>
|
||||
{
|
||||
MessageType = "SystemCommand",
|
||||
Data = command.ToString()
|
||||
|
||||
}, cancellationToken);
|
||||
}
|
||||
|
||||
public Task SendMessageCommand(MessageCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
var socket = GetActiveSocket();
|
||||
|
|
@ -199,13 +187,13 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||
}, cancellationToken);
|
||||
}
|
||||
|
||||
public Task SendGenericCommand(GenericCommand command, CancellationToken cancellationToken)
|
||||
public Task SendGeneralCommand(GeneralCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
var socket = GetActiveSocket();
|
||||
|
||||
return socket.SendAsync(new WebSocketMessage<GenericCommand>
|
||||
return socket.SendAsync(new WebSocketMessage<GeneralCommand>
|
||||
{
|
||||
MessageType = "Command",
|
||||
MessageType = "GeneralCommand",
|
||||
Data = command
|
||||
|
||||
}, cancellationToken);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue