public FullScreenPlayer(Node current, Player ucPlayer, MediaElement parent, TimeSpan now)
        {
            InitializeComponent();

            //if (!File.Exists(current.Filelocation))
            //{
            //    MessageBox.Show("文件不存在!!");
            //}
            //else
            //{
            //    VideoUtil.encode(current.Filelocation);
            //}
            this.parent = parent;
            this.current = current;
            this.ucPlayer = ucPlayer;
            player.Width = SystemParameters.VirtualScreenWidth;
            player.Height = SystemParameters.VirtualScreenHeight - 45;

            //wpfMediaPlayer.URL = current.Filelocation;

            //player.Play();

            DispatcherTimer timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick += timer_Tick;
            timer.Start();

            player.Source = new Uri(current.Filelocation, UriKind.Relative);
            player.Position = now;
            player.Play();
        }
        private void run()
        {
            App.Current.Dispatcher.Invoke(new Action(() => {
                Player player = new Player(current, pb);
                body.Children.RemoveRange(0, body.Children.Count);
                body.Children.Add(player);

            }));
        }