コード例 #1
0
        /// <summary>
        /// Called from the skin if the user invokes the "InstantSkip" action. This will start the InstantSkip in the
        /// underlaying player.
        /// </summary>
        public void InstantSkipBackward()
        {
            IPlayerContext pc = GetPlayerContext();

            if (pc == null)
            {
                return;
            }

            ClearSkipTimer();
            MediaModelSettings settings = ServiceRegistration.Get <ISettingsManager>().Load <MediaModelSettings>();

            pc.InstantSkip(-(int)settings.InstantSkipPercent);
        }
コード例 #2
0
        /// <summary>
        /// Called from the skin if the user invokes the "InstantSkip" action. This will start the InstantSkip in the
        /// underlying player.
        /// </summary>
        public void InstantSkipBackward()
        {
            IPlayerContext pc = GetPlayerContext();

            if (pc == null)
            {
                return;
            }

            ClearSkipTimer();
            MediaModelSettings settings = ServiceRegistration.Get <ISettingsManager>().Load <MediaModelSettings>();

            if (settings.PreferInstantSkipSeconds)
            {
                pc.SkipRelative(TimeSpan.FromSeconds(-settings.InstantSkipSeconds));
            }
            else
            {
                pc.InstantSkip(-(int)settings.InstantSkipPercent);
            }
        }