From ff05985a8746c332ef0f38ae66b9952648ec3b59 Mon Sep 17 00:00:00 2001 From: CaiFeng <2397707574@qq.com> Date: Mon, 24 Jul 2023 19:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85copyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/src/CameraPlayer.js | 14 ++++++++++++++ sdk/src/DeviceHardwareHandler.js | 14 ++++++++++++++ sdk/src/DirectionHandler.js | 14 ++++++++++++++ sdk/src/MicrophonePlayer.js | 14 ++++++++++++++ sdk/src/codec/Decode.js | 14 ++++++++++++++ sdk/src/codec/Encode.js | 14 ++++++++++++++ sdk/src/config/commonConfig.js | 14 ++++++++++++++ sdk/src/tools/baseClass.js | 14 ++++++++++++++ sdk/src/tools/event.js | 14 ++++++++++++++ sdk/src/worker/AudioEncoder.js | 14 ++++++++++++++ sdk/src/worker/VideoEncoder.js | 14 ++++++++++++++ 11 files changed, 154 insertions(+) diff --git a/sdk/src/CameraPlayer.js b/sdk/src/CameraPlayer.js index 19846d8..9c6ba58 100644 --- a/sdk/src/CameraPlayer.js +++ b/sdk/src/CameraPlayer.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import Util from "./Util"; import work from 'webworkify-webpack'; import PROTOCOL_CONFIG from './config/protocolConfig'; diff --git a/sdk/src/DeviceHardwareHandler.js b/sdk/src/DeviceHardwareHandler.js index 002f3d4..6be0b00 100644 --- a/sdk/src/DeviceHardwareHandler.js +++ b/sdk/src/DeviceHardwareHandler.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import Util from './Util'; import CameraPlayer from './CameraPlayer'; import MicrophonePlayer from './MicrophonePlayer'; diff --git a/sdk/src/DirectionHandler.js b/sdk/src/DirectionHandler.js index 565c89c..fa0663c 100644 --- a/sdk/src/DirectionHandler.js +++ b/sdk/src/DirectionHandler.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import PROTOCOL_CONFIG from './config/protocolConfig'; import {CLOUD_PHONE_RATIO} from './config/commonConfig'; diff --git a/sdk/src/MicrophonePlayer.js b/sdk/src/MicrophonePlayer.js index 4eb9c7e..c836b4d 100644 --- a/sdk/src/MicrophonePlayer.js +++ b/sdk/src/MicrophonePlayer.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import Util from "./Util"; import work from 'webworkify-webpack'; import PROTOCOL_CONFIG from './config/protocolConfig'; diff --git a/sdk/src/codec/Decode.js b/sdk/src/codec/Decode.js index 97ac4a4..b435a6e 100644 --- a/sdk/src/codec/Decode.js +++ b/sdk/src/codec/Decode.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import Util from '../Util'; import { DECODER_TYPE_MAP } from '../config/commonConfig'; diff --git a/sdk/src/codec/Encode.js b/sdk/src/codec/Encode.js index 2720fc0..5cd41eb 100644 --- a/sdk/src/codec/Encode.js +++ b/sdk/src/codec/Encode.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import x264_encoder from '../3rd/video-codec-lib/X264Encoder'; import Util from '../Util'; diff --git a/sdk/src/config/commonConfig.js b/sdk/src/config/commonConfig.js index ad53c4e..4542682 100644 --- a/sdk/src/config/commonConfig.js +++ b/sdk/src/config/commonConfig.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + export const DECODER_TYPE_MAP = { 'H264': 0, 'H265': 1 diff --git a/sdk/src/tools/baseClass.js b/sdk/src/tools/baseClass.js index 1bc46a6..88d1fc7 100644 --- a/sdk/src/tools/baseClass.js +++ b/sdk/src/tools/baseClass.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import getEvents from './event'; class BaseClass { constructor(options = {}) { diff --git a/sdk/src/tools/event.js b/sdk/src/tools/event.js index 8de6731..aa2e3cf 100644 --- a/sdk/src/tools/event.js +++ b/sdk/src/tools/event.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import Logger from '../Logger'; export class Events { diff --git a/sdk/src/worker/AudioEncoder.js b/sdk/src/worker/AudioEncoder.js index 258a870..2fb3b45 100644 --- a/sdk/src/worker/AudioEncoder.js +++ b/sdk/src/worker/AudioEncoder.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import {OpusDecoder, OpusEncoder} from "../3rd/opus/opus"; const encoder = new OpusEncoder(48000, 1, 2049, 20); diff --git a/sdk/src/worker/VideoEncoder.js b/sdk/src/worker/VideoEncoder.js index d7aa0c5..f5417ae 100644 --- a/sdk/src/worker/VideoEncoder.js +++ b/sdk/src/worker/VideoEncoder.js @@ -1,3 +1,17 @@ +// Copyright 2023 Huawei Cloud Computing Technology 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. + import VideoEncode from '../codec/Encode'; import { mat4 } from 'gl-matrix'; -- Gitee