/// <summary> /// 播放视频 /// </summary> /// <param name="aid">AV号</param> /// <param name="sender">触发控件(用于查找封面以实现连接动画)</param> /// <param name="fromSign">来源参数</param> public void PlayVideo(int aid, object sender = null, string fromSign = "") { //App._watch.Start(); CurrentSubPageControl.CheckSubReplyPage(); SelectedSideMenuItem = null; if (sender != null && IsEnableAnimation && !IsVideoPageInit) { //var image = VisualTreeExtension.VisualTreeFindName<FrameworkElement>((FrameworkElement)sender, "VideoCover"); string animationName = "VideoConnectedAnimation" + Guid.NewGuid().ToString("N"); ConnectAnimationName = animationName; ConnectedAnimationService.GetForCurrentView().PrepareToAnimate(animationName, sender as UIElement); } else { ConnectAnimationName = ""; } if (App._isTabletMode) { CurrentTopPanel.SetSelectedItem(AppMenuItemType.Line); TabletMainPage.Current.NavigateToPage(AppMenuItemType.VideoPlayer, aid); } else { CurrentSidePanel.SetSelectedItem(AppMenuItemType.Line); CurrentPagePanel.NavigateToPage(AppMenuItemType.VideoPlayer, new Tuple <int, string>(aid, fromSign)); } //App._watch.Stop(); }