CEmptyVideoPlayer.h 763 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * CEmptyVideoPlayer.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "IVideoPlayer.h"
  12. class CEmptyVideoPlayer final : public IVideoPlayer
  13. {
  14. public:
  15. void playSpellbookAnimation(const VideoPath & name, const Point & position) override
  16. {
  17. }
  18. /// Load video from specified path
  19. std::unique_ptr<IVideoInstance> open(const VideoPath & name, float scaleFactor) override
  20. {
  21. return nullptr;
  22. };
  23. /// Extracts audio data from provided video in wav format
  24. std::pair<std::unique_ptr<ui8[]>, si64> getAudio(const VideoPath & videoToOpen) override
  25. {
  26. return {nullptr, 0};
  27. };
  28. };