You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
using MediaBrowser.Model.Entities;
|
|
using System.Collections.Generic;
|
|
using System.Windows;
|
|
|
|
namespace MediaBrowser.Plugins.DefaultTheme.Controls.Details
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ItemMediaInfo.xaml
|
|
/// </summary>
|
|
public partial class ItemMediaInfo : BaseDetailsControl
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ItemMediaInfo" /> class.
|
|
/// </summary>
|
|
public ItemMediaInfo()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Called when [item changed].
|
|
/// </summary>
|
|
protected override void OnItemChanged()
|
|
{
|
|
MediaStreams.Children.Clear();
|
|
|
|
TxtPath.Text = Item.Path;
|
|
|
|
if (Item.VideoFormat.HasValue && Item.VideoFormat.Value != VideoFormat.Standard)
|
|
{
|
|
TxtVideoFormat.Visibility = Visibility.Visible;
|
|
|
|
TxtVideoFormat.Text = Item.VideoFormat.Value == VideoFormat.Digital3D ? "Digital 3D" : "SBS 3D";
|
|
}
|
|
else
|
|
{
|
|
TxtVideoFormat.Visibility = Visibility.Collapsed;
|
|
}
|
|
|
|
foreach (var stream in Item.MediaStreams ?? new List<MediaStream> {})
|
|
{
|
|
MediaStreams.Children.Add(new MediaStreamControl
|
|
{
|
|
MediaStream = stream
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|