public void Stop() { Player?.Stop(); playCTS?.Cancel(); playCTS?.Dispose(); playCTS = null; videoLoader?.GetLoadedOrNull(playedMovieName)?.Release(this); playedMovieName = null; OnMovieStop?.Invoke(); }
public virtual void Stop() { if (Player) { Player.Stop(); } playCTS?.Cancel(); playCTS?.Dispose(); playCTS = null; videoLoader?.Release(playedMovieName, this); playedMovieName = null; OnMovieStop?.Invoke(); }