Esempio n. 1
0
 /// <summary>
 /// Performs actions when the command has been executed.
 /// This is useful to notify exceptions or update the state of the media.
 /// </summary>
 public override void PostProcess()
 {
     MediaCore.SendOnMediaClosed();
     MediaCore.State.UpdateFixedContainerProperties();
     LogReferenceCounter(MediaCore);
     MediaCore.Log(MediaLogMessageType.Debug, $"Command {CommandType}: Completed");
 }
        /// <summary>
        /// Performs actions when the command has been executed.
        /// This is useful to notify exceptions or update the state of the media.
        /// </summary>
        public override void PostProcess()
        {
            var m = MediaCore;

            if (m == null)
            {
                return;
            }

            // Update notification properties
            m.State.ResetAll();
            m.ResetPosition();
            m.State.UpdateMediaState(PlaybackStatus.Close);
            m.State.UpdateSource(null);

            // Notify media has closed
            MediaCore.SendOnMediaClosed();
            LogReferenceCounter(MediaCore);
            MediaCore.Log(MediaLogMessageType.Debug, $"Command {CommandType}: Completed");
        }
Esempio n. 3
0
        /// <inheritdoc />
        public override void PostProcess()
        {
            var m = MediaCore;

            if (m == null)
            {
                return;
            }

            // Update notification properties
            m.State.ResetAll();
            m.ResetPosition();
            m.State.UpdateMediaState(PlaybackStatus.Close);
            m.State.UpdateSource(null);

            // Notify media has closed
            MediaCore.SendOnMediaClosed();
            LogReferenceCounter();
            this.LogDebug(Aspects.EngineCommand, $"{CommandType} Completed");
        }