コード例 #1
0
        void onMediaOpened(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine(DevOp.GetCaller());

            try
            {
                if (_mid != null && me_Xm.CanSeek && me_Xm.NaturalDuration > _mid.PlayPosn)
                {
                    me_Xm.Position = _mid.PlayPosn; //              me1.Position = new TimeSpan(0, 1, 0, 0, 0);
                }
            }
            catch (Exception ex) { Debug.WriteLine(ex.Message); if (Debugger.IsAttached)
                                   {
                                       Debugger.Break();
                                   }
                                   else
                                   {
                                       throw;
                                   } }
        }
コード例 #2
0
 void onMediaCoStChd(object sender, RoutedEventArgs e)
 {
     Debug.WriteLine(DevOp.GetCaller());
 }
コード例 #3
0
 void onMediaPmfd(MediaElement sender, PartialMediaFailureDetectedEventArgs args)
 {
     Debug.WriteLine(DevOp.GetCaller());
 }
コード例 #4
0
 void onMediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine(DevOp.GetCaller());
 }