CEmptyVideoPlayer.h 917 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /// Plays video on top of the screen, returns only after playback is over
  16. bool playIntroVideo(const VideoPath & name) override
  17. {
  18. return false;
  19. };
  20. void playSpellbookAnimation(const VideoPath & name, const Point & position) override
  21. {
  22. }
  23. /// Load video from specified path
  24. std::unique_ptr<IVideoInstance> open(const VideoPath & name, bool scaleToScreen) override
  25. {
  26. return nullptr;
  27. };
  28. /// Extracts audio data from provided video in wav format
  29. std::pair<std::unique_ptr<ui8[]>, si64> getAudio(const VideoPath & videoToOpen) override
  30. {
  31. return {nullptr, 0};
  32. };
  33. };