1 /* 2 * Copyright (c) 2023 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 #include "video_device_descriptor_adapter_impl.h" 17 18 namespace OHOS::NWeb { 19 GetDisplayName()20std::string VideoDeviceDescriptorAdapterImpl::GetDisplayName() 21 { 22 return ""; 23 } 24 GetDeviceId()25std::string VideoDeviceDescriptorAdapterImpl::GetDeviceId() 26 { 27 return ""; 28 } 29 GetModelId()30std::string VideoDeviceDescriptorAdapterImpl::GetModelId() 31 { 32 return ""; 33 } 34 GetControlSupport()35std::shared_ptr<VideoControlSupportAdapter> VideoDeviceDescriptorAdapterImpl::GetControlSupport() 36 { 37 return nullptr; 38 } 39 GetTransportType()40VideoTransportType VideoDeviceDescriptorAdapterImpl::GetTransportType() 41 { 42 return VideoTransportType::VIDEO_TRANS_TYPE_OTHER; 43 } 44 GetFacingMode()45VideoFacingModeAdapter VideoDeviceDescriptorAdapterImpl::GetFacingMode() 46 { 47 return VideoFacingModeAdapter::NUM_FACING_MODES; 48 } 49 GetSupportCaptureFormats()50std::vector<std::shared_ptr<FormatAdapter>> VideoDeviceDescriptorAdapterImpl::GetSupportCaptureFormats() 51 { 52 return std::vector<std::shared_ptr<FormatAdapter>>(); 53 } 54 SetDisplayName(std::string name)55void VideoDeviceDescriptorAdapterImpl::SetDisplayName(std::string name) 56 { 57 } 58 SetDeviceId(std::string deviceId)59void VideoDeviceDescriptorAdapterImpl::SetDeviceId(std::string deviceId) 60 { 61 } 62 SetModelId(std::string modelId)63void VideoDeviceDescriptorAdapterImpl::SetModelId(std::string modelId) 64 { 65 } 66 SetControlSupport(std::shared_ptr<VideoControlSupportAdapter> support)67void VideoDeviceDescriptorAdapterImpl::SetControlSupport(std::shared_ptr<VideoControlSupportAdapter> support) 68 { 69 } 70 SetTransportType(VideoTransportType type)71void VideoDeviceDescriptorAdapterImpl::SetTransportType(VideoTransportType type) 72 { 73 } 74 SetFacingMode(VideoFacingModeAdapter facing)75void VideoDeviceDescriptorAdapterImpl::SetFacingMode(VideoFacingModeAdapter facing) 76 { 77 } 78 SetSupportCaptureFormats(std::vector<std::shared_ptr<FormatAdapter>> formats)79void VideoDeviceDescriptorAdapterImpl::SetSupportCaptureFormats(std::vector<std::shared_ptr<FormatAdapter>> formats) 80 { 81 } 82 83 } // namespace OHOS::NWeb 84