/// <summary>
        /// Moves the player to a given position
        /// </summary>
        protected override void SeekInternal(long position)
        {
            var mce = AddInHost.Current.MediaCenterEnvironment;

            Logger.ReportVerbose("Trying to seek position :" + new TimeSpan(position).ToString());
            PlaybackControllerHelper.WaitForStream(mce);
            mce.MediaExperience.Transport.Position = new TimeSpan(position);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Moves the player to a given position
 /// </summary>
 protected override void SeekInternal(long position)
 {
     try
     {
         Logger.ReportVerbose("Trying to seek position :" + new TimeSpan(position).ToString());
         PlaybackControllerHelper.WaitForStream(Application.MediaExperience);
         Application.MediaExperience.Transport.Position = new TimeSpan(position);
     }
     catch (Exception e)
     {
         Logger.ReportException("Error attempting to seek", e);
     }
 }