1 /* 2 * Copyright (c) 2021-2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef HISTREAMER_RECORDER_EXECUTOR_H 17 #define HISTREAMER_RECORDER_EXECUTOR_H 18 19 #include "pipeline/core/error_code.h" 20 #include "plugin/common/any.h" 21 22 namespace OHOS { 23 namespace Media { 24 class RecorderExecutor { 25 public: ~RecorderExecutor()26 virtual ~RecorderExecutor() 27 { 28 } 29 DoSetVideoSource(const Plugin::Any & param)30 virtual ErrorCode DoSetVideoSource(const Plugin::Any& param) const 31 { 32 (void)param; 33 return ErrorCode::SUCCESS; 34 } 35 DoSetAudioSource(const Plugin::Any & param)36 virtual ErrorCode DoSetAudioSource(const Plugin::Any& param) const 37 { 38 (void)param; 39 return ErrorCode::SUCCESS; 40 } 41 DoConfigure(const Plugin::Any & param)42 virtual ErrorCode DoConfigure(const Plugin::Any& param) const 43 { 44 (void)param; 45 return ErrorCode::SUCCESS; 46 } 47 DoSetOutputFormat(const Plugin::Any & param)48 virtual ErrorCode DoSetOutputFormat(const Plugin::Any& param) const 49 { 50 (void)param; 51 return ErrorCode::SUCCESS; 52 } 53 DoPrepare()54 virtual ErrorCode DoPrepare() 55 { 56 return ErrorCode::SUCCESS; 57 } 58 DoStart()59 virtual ErrorCode DoStart() 60 { 61 return ErrorCode::SUCCESS; 62 } 63 DoPause()64 virtual ErrorCode DoPause() 65 { 66 return ErrorCode::SUCCESS; 67 } 68 DoResume()69 virtual ErrorCode DoResume() 70 { 71 return ErrorCode::SUCCESS; 72 } 73 DoStop(const Plugin::Any & param)74 virtual ErrorCode DoStop(const Plugin::Any& param) 75 { 76 (void)param; 77 return ErrorCode::SUCCESS; 78 } 79 DoOnComplete()80 virtual ErrorCode DoOnComplete() 81 { 82 return ErrorCode::SUCCESS; 83 } 84 DoReset()85 virtual ErrorCode DoReset() 86 { 87 return ErrorCode::SUCCESS; 88 } 89 }; 90 } // namespace Media 91 } // namespace OHOS 92 93 #endif // HISTREAMER_RECORDER_EXECUTOR_H 94