* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef RECORDERPROFILES_IMPL_H
#define RECORDERPROFILES_IMPL_H
#include "nocopyable.h"
#include "recorder_profiles.h"
namespace OHOS {
namespace Media {
class RecorderProfilesImpl : public RecorderProfiles, public NoCopyable {
public:
~RecorderProfilesImpl();
bool IsAudioRecorderConfigSupported(const AudioRecorderProfile &profile) override
{
return false;
}
bool HasVideoRecorderProfile(int32_t sourceId, int32_t qualityLevel) override
{
return false;
}
std::vector<std::shared_ptr<AudioRecorderCaps>> GetAudioRecorderCaps() override
{
std::vector<std::shared_ptr<AudioRecorderCaps>> audioRecorderCapsArray;
return audioRecorderCapsArray;
}
std::vector<std::shared_ptr<VideoRecorderCaps>> GetVideoRecorderCaps() override
{
std::vector<std::shared_ptr<VideoRecorderCaps>> videoRecorderCapsArray;
return videoRecorderCapsArray;
}
std::shared_ptr<VideoRecorderProfile> GetVideoRecorderProfile(int32_t sourceId, int32_t qualityLevel) override
{
return nullptr;
}
static RecorderProfiles& GetInstance();
private:
RecorderProfilesImpl();
int32_t Init();
};
}
}
#endif