1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/client/media/CEmptyVideoPlayer.h

29 lines
670 B
C++
Raw Normal View History

/*
* 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:
/// Load video from specified path
2024-09-12 23:06:33 +02:00
std::unique_ptr<IVideoInstance> open(const VideoPath & name, float scaleFactor) override
{
return nullptr;
};
/// Extracts audio data from provided video in wav format
2024-05-17 18:01:08 +02:00
std::pair<std::unique_ptr<ui8[]>, si64> getAudio(const VideoPath & videoToOpen) override
{
2024-05-17 18:01:08 +02:00
return {nullptr, 0};
};
};