First POC with working playback
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using MediaBrowser.Model.Plugins;
|
||||
|
||||
namespace Jellyfin.Plugin.JellyLMS.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin configuration for JellyLMS.
|
||||
/// </summary>
|
||||
public class PluginConfiguration : BasePluginConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
|
||||
/// </summary>
|
||||
public PluginConfiguration()
|
||||
{
|
||||
LmsServerUrl = "http://localhost:9000";
|
||||
LmsUsername = string.Empty;
|
||||
LmsPassword = string.Empty;
|
||||
JellyfinServerUrl = "http://localhost:8096";
|
||||
ConnectionTimeoutSeconds = 10;
|
||||
EnableAutoSync = true;
|
||||
DefaultPlayerMac = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the LMS server URL (e.g., http://192.168.1.100:9000).
|
||||
/// </summary>
|
||||
public string LmsServerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the LMS username (if authentication is enabled).
|
||||
/// </summary>
|
||||
public string LmsUsername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the LMS password (if authentication is enabled).
|
||||
/// </summary>
|
||||
public string LmsPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Jellyfin server URL that LMS will use to stream audio.
|
||||
/// This should be accessible from the LMS server.
|
||||
/// </summary>
|
||||
public string JellyfinServerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the connection timeout in seconds.
|
||||
/// </summary>
|
||||
public int ConnectionTimeoutSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to automatically sync players
|
||||
/// when playing to multiple devices.
|
||||
/// </summary>
|
||||
public bool EnableAutoSync { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default player MAC address to use when none is specified.
|
||||
/// </summary>
|
||||
public string DefaultPlayerMac { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Jellyfin API key for authenticating stream requests from LMS.
|
||||
/// </summary>
|
||||
public string JellyfinApiKey { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user