/// <summary> /// Starts this instance. /// </summary> public override void Start() { base.Start(); Status = MediaPlayerStatus.Playing; Started.RaiseEvent(this); if (TimeElapsedInterval > 0) { _timer?.Start(); } }
/// <summary> /// Starts interpolation if it is not currently running. /// </summary> /// <remarks>This forces a start if not currently running and does not check if the interpolated value is at the target value.</remarks> public void EnsureEnabled() { if (!IsRunning) { if (skipFirstUpdateFrame) { firstUpdateFrameSkipped = false; } IsRunning = true; Started.RaiseEvent(this); } }