diff --git a/sdk/src/CameraPlayer.js b/sdk/src/CameraPlayer.js index 19846d88d0522815a850b928940c199efe035572..9c6ba589ad74b3301736c3ed4eff74c8a0e4652c 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 002f3d490ae9247430bdc1ba6cb39c2ea0958e45..6be0b00eff4dd53cc2db3c48589c8f7cb15b183a 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 565c89c4aa589698b7457fde77cb173d677796a1..fa0663cac2cfb3e094a5c97d152e2f1c833c2908 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 4eb9c7eb0e829047d402a9aaa7af564982db5dc5..c836b4dc457c6697014497327ba0d8df1e32c9da 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 97ac4a492dc477cdd159bf3ba2ef6a94ffb2af96..b435a6ed819811d5944328a7e373fad5882e0cda 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 2720fc0935e027c8ad2622b8d647d933b427e7aa..5cd41eb1f17cb4c2d4ccaf8060564d565df4771e 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 ad53c4e7711db3483a2b3611ba1af05c3af00430..4542682a24a64adfed1e624869805eb675d172af 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 1bc46a6a525c328d0ad6c0297c0f8d6060a47f18..88d1fc7a999b7671992c34c11b0b1b15dfc63475 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 8de67318b2b3f3d9a28a7fb23878ea4492a8fad7..aa2e3cf9df8118f7ddb5a1b3e22554f25deaa7ca 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 258a8702b43ea24fd9876b5116b81109b874ba61..2fb3b45adb7fe91907542102e9c83e92a69db274 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 d7aa0c5086e9fcbc8859cc75aa67a55ac508d317..f5417ae75a0186142ca2a63cec441d2e00ac091d 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';