diff --git a/FoxTube/FoxTube.csproj b/FoxTube/FoxTube.csproj index c0dd4e1..369842c 100644 --- a/FoxTube/FoxTube.csproj +++ b/FoxTube/FoxTube.csproj @@ -148,6 +148,9 @@ VideoList.xaml + + VideoPlayer.xaml + @@ -284,6 +287,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + diff --git a/FoxTube/MainPage.xaml.cs b/FoxTube/MainPage.xaml.cs index 86d9b16..fe3eab4 100644 --- a/FoxTube/MainPage.xaml.cs +++ b/FoxTube/MainPage.xaml.cs @@ -55,6 +55,7 @@ namespace FoxTube settings.Values.Add("moblieWarning", false); settings.Values.Add("videoAutoplay", true); + settings.Values.Add("volume", 100); } content.Navigate(typeof(Home)); } @@ -350,7 +351,7 @@ namespace FoxTube async void buildSearchSuggestionsTree(string keyword) { - + } private void searchField_LostFocus(object sender, RoutedEventArgs e) @@ -360,7 +361,8 @@ namespace FoxTube private void searchButton_Click(object sender, RoutedEventArgs e) { - StartSearch(searchField.Text); + if(searchField.Text != "") + StartSearch(searchField.Text); } private async void StartSearch(string keyword) @@ -369,7 +371,7 @@ namespace FoxTube YouTubeService ytService = new YouTubeService(new BaseClientService.Initializer() { - ApiKey = "INSERT_API_HERE", + ApiKey = "AIzaSyBgHrCnrlzlVmk0cJKL8RqP9Y8x6XSuk_0", ApplicationName = this.GetType().ToString() }); @@ -390,7 +392,7 @@ namespace FoxTube private void searchField_KeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) - StartSearch(searchField.Text); + searchButton_Click(this, null); } } } diff --git a/FoxTube/Video.xaml b/FoxTube/Video.xaml index ccc28e2..3ecf5c6 100644 --- a/FoxTube/Video.xaml +++ b/FoxTube/Video.xaml @@ -13,7 +13,8 @@ - + + diff --git a/FoxTube/VideoPlayer.xaml b/FoxTube/VideoPlayer.xaml new file mode 100644 index 0000000..b38e867 --- /dev/null +++ b/FoxTube/VideoPlayer.xaml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +