public void StartVideo()
 {
     _player.BeginStop(() =>
     {
         _player.LoadMedia(new Uri(_url));
         _player.Play();
     });
 }
示例#2
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            Uri uri = new Uri(path.Text);

            //String pathString = path.Text;

            VlcPlayer.BeginStop((ar) =>
            {
                VlcPlayer.LoadMedia(uri.ToString());
                VlcPlayer.Play();
            });
        }