mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
39 lines
917 B
C++
39 lines
917 B
C++
/*
|
|
* CEmptyVideoPlayer.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "IVideoPlayer.h"
|
|
|
|
class CEmptyVideoPlayer final : public IVideoPlayer
|
|
{
|
|
public:
|
|
/// Plays video on top of the screen, returns only after playback is over
|
|
bool playIntroVideo(const VideoPath & name) override
|
|
{
|
|
return false;
|
|
};
|
|
|
|
void playSpellbookAnimation(const VideoPath & name, const Point & position) override
|
|
{
|
|
}
|
|
|
|
/// Load video from specified path
|
|
std::unique_ptr<IVideoInstance> open(const VideoPath & name, bool scaleToScreen) override
|
|
{
|
|
return nullptr;
|
|
};
|
|
|
|
/// Extracts audio data from provided video in wav format
|
|
std::pair<std::unique_ptr<ui8[]>, si64> getAudio(const VideoPath & videoToOpen) override
|
|
{
|
|
return {nullptr, 0};
|
|
};
|
|
};
|