コード例 #1
0
ファイル: DetailsPage.xaml.cs プロジェクト: 27043591/GUI-
        private void VideoButton_Click(object sender, RoutedEventArgs e)
        {
            VideoPlayer.Source = MediaSource.CreateFromUri(new Uri("https://adxlive.blob.core.windows.net/asset-3bc60f5a-b30a-4e7d-9ba1-f2a9ce0fbe13/mjsNapol01_high_high.mp4?sv=2012-02-12&sr=c&si=c1742964-8afb-4eb8-8aea-044beb817f78&sig=EeHuyIoVVavEy84V44K2Dkh%2FMNq6yuwV%2BnaXhrwS0Hw%3D&st=2016-08-28T00%3A18%3A44Z&se=2116-08-28T00%3A18%3A44Z"));

            VideoPlayer.Visibility       = Visibility.Visible;
            VideoPlayerShadow.Visibility = Visibility.Visible;

            VideoPlayer.AutoPlay = true;
            VideoPlayer.MediaPlayer.CurrentStateChanged             += MediaPlayer_CurrentStateChanged;
            VideoPlayer.TransportControls.IsFullWindowButtonVisible  = false;
            VideoPlayer.TransportControls.IsFastForwardButtonVisible = true;
            VideoPlayer.TransportControls.IsFastForwardEnabled       = true;
            VideoPlayer.TransportControls.IsFastRewindButtonVisible  = true;
            VideoPlayer.TransportControls.IsFastRewindEnabled        = true;

            VideoTransportControls.Visibility = Visibility.Visible;

            (sender as Button).Fade(0).Start();
            VideoPlayer.Fade(1).Start();
            VideoTransportControls.Fade(1).SetDelay(200).Start();

            Section4.XYFocusDown      = PlayButton;
            RelatedGridView.XYFocusUp = PlayButton;

            (sender as Button).IsEnabled = false;
        }