Enhance channel settings to include icon image support for IPTV
Updated the Channel and related DTOs to incorporate an optional IconImageId property, allowing for the specification of a channel icon for external IPTV players. Modified the UpdateChannelSettings command and its handler to accommodate this new property. Adjusted frontend components to manage the icon image, including selection and display functionality. Updated localization files to support new UI elements related to the IPTV icon. This enhancement improves the user experience by providing a visual representation of channels in IPTV applications.
This commit is contained in:
@@ -31,8 +31,8 @@ public class ListPublicChannelsTests
|
||||
var disabled = Channel.Create("Выключенный", "off", T0);
|
||||
|
||||
foreach (var channel in new[] { numbered, first, unnumbered })
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null);
|
||||
disabled.UpdateSettings("Выключенный", isEnabled: false, null);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null, null);
|
||||
disabled.UpdateSettings("Выключенный", isEnabled: false, null, null);
|
||||
|
||||
await using (var seed = fixture.New())
|
||||
{
|
||||
@@ -57,7 +57,7 @@ public class ListPublicChannelsTests
|
||||
{
|
||||
var fixture = new TestDb();
|
||||
var channel = Channel.Create("Первый", "one", T0);
|
||||
channel.UpdateSettings("Первый", isEnabled: true, null);
|
||||
channel.UpdateSettings("Первый", isEnabled: true, null, null);
|
||||
var logoId = Guid.NewGuid();
|
||||
channel.UpdateViewerSettings(logoId, LogoCorner.TopRight, 0.5, showClock: true, 0.3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user