From de240c818846bb8deed7a36fbee612af4613800e Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Thu, 6 Sep 2018 19:32:47 +0300 Subject: [PATCH] captions system development 0 --- FoxTube/Controls/LiveCaptions.xaml | 16 ++++++++++++++++ FoxTube/Controls/LiveCaptions.xaml.cs | 27 +++++++++++++++++++++++++++ FoxTube/Controls/VideoPlayer.xaml | 5 ++++- FoxTube/FoxTube.csproj | 7 +++++++ 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 FoxTube/Controls/LiveCaptions.xaml create mode 100644 FoxTube/Controls/LiveCaptions.xaml.cs diff --git a/FoxTube/Controls/LiveCaptions.xaml b/FoxTube/Controls/LiveCaptions.xaml new file mode 100644 index 0000000..a65d4f8 --- /dev/null +++ b/FoxTube/Controls/LiveCaptions.xaml @@ -0,0 +1,16 @@ + + + + + + diff --git a/FoxTube/Controls/LiveCaptions.xaml.cs b/FoxTube/Controls/LiveCaptions.xaml.cs new file mode 100644 index 0000000..e468565 --- /dev/null +++ b/FoxTube/Controls/LiveCaptions.xaml.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 + +namespace FoxTube.Controls +{ + public sealed partial class LiveCaptions : UserControl + { + public LiveCaptions() + { + this.InitializeComponent(); + } + } +} diff --git a/FoxTube/Controls/VideoPlayer.xaml b/FoxTube/Controls/VideoPlayer.xaml index 0bfc289..f9bafc7 100644 --- a/FoxTube/Controls/VideoPlayer.xaml +++ b/FoxTube/Controls/VideoPlayer.xaml @@ -6,6 +6,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" + xmlns:controls1="using:FoxTube.Controls" mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920" @@ -17,7 +18,9 @@ - + + + diff --git a/FoxTube/FoxTube.csproj b/FoxTube/FoxTube.csproj index 22f5e01..eefc35c 100644 --- a/FoxTube/FoxTube.csproj +++ b/FoxTube/FoxTube.csproj @@ -109,6 +109,9 @@ DownloadItem.xaml + + LiveCaptions.xaml + PlaylistCard.xaml @@ -287,6 +290,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile