mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-09 04:04:54 +00:00
added generic remote control commands
This commit is contained in:
parent
1dafb46b71
commit
57623886b2
16 changed files with 131 additions and 46 deletions
|
|
@ -198,5 +198,17 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||
|
||||
}, cancellationToken);
|
||||
}
|
||||
|
||||
public Task SendGenericCommand(GenericCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
var socket = GetActiveSocket();
|
||||
|
||||
return socket.SendAsync(new WebSocketMessage<GenericCommand>
|
||||
{
|
||||
MessageType = "Command",
|
||||
Data = command
|
||||
|
||||
}, cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue