Fix issue with Jellyfin using local IP adress not server public URL, now pulic URL is set in plugin.
This commit is contained in:
@@ -476,9 +476,10 @@ public class SRFPlayChannel : IChannel, IHasCacheKey
|
||||
// Register stream with proxy service
|
||||
_proxyService.RegisterStream(itemId, streamUrl);
|
||||
|
||||
// Get the server's local API URL so remote clients can access the proxy
|
||||
// Use the published server address configured in Jellyfin's network settings
|
||||
var serverUrl = _appHost.GetSmartApiUrl(string.Empty);
|
||||
// Get the server URL for proxy - prefer configured public URL for remote clients
|
||||
var serverUrl = !string.IsNullOrWhiteSpace(config.PublicServerUrl)
|
||||
? config.PublicServerUrl.TrimEnd('/') // Use configured public URL (important for Android/remote clients)
|
||||
: _appHost.GetSmartApiUrl(string.Empty); // Fall back to Jellyfin's smart URL resolution
|
||||
|
||||
// Create proxy URL as absolute HTTP URL (required for ffmpeg)
|
||||
// Use the actual server URL so remote clients can access it
|
||||
|
||||
Reference in New Issue
Block a user