コード例 #1
0
 public override void OnDestroy()
 {
     if (player != null)
     {
         player.Release();
     }
     base.OnDestroy();
 }
コード例 #2
0
        protected override void OnDestroy()
        {
            try
            {
                YoutubePlayer?.Release();

                base.OnDestroy();
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }
コード例 #3
0
        public override void OnDestroy()
        {
            try
            {
                YoutubePlayer?.Release();

                base.OnDestroy();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #4
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             var tr = MainActivity.Current.SupportFragmentManager.BeginTransaction();
             tr?.Remove(youTubePlayerFragment);
             tr?.Commit();
             youTubePlayerFragment?.Dispose();
             YPlayer?.Release();
             YPlayer?.Dispose();
         }
     }
     catch
     {
     }
     base.Dispose(disposing);
 }