diff --git a/.codacy.yaml b/.codacy.yaml index a8c225b7..aa0b11b3 100644 --- a/.codacy.yaml +++ b/.codacy.yaml @@ -1,3 +1,6 @@ --- +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT + exclude_paths: - examples/examples.json diff --git a/.github/.ci.conf b/.github/.ci.conf index 771f57c8..59a10be3 100644 --- a/.github/.ci.conf +++ b/.github/.ci.conf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT + GO_JS_WASM_EXEC=${PWD}/test-wasm/go_js_wasm_exec TEST_EXTRA_ARGS="-tags quic" GOLANGCI_LINT_EXRA_ARGS="--build-tags quic" diff --git a/.github/pion-gopher-webrtc.png.license b/.github/pion-gopher-webrtc.png.license new file mode 100644 index 00000000..40eb56b1 --- /dev/null +++ b/.github/pion-gopher-webrtc.png.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2023 The Pion community +SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/.github/workflows/browser-e2e.yaml b/.github/workflows/browser-e2e.yaml index b45f6371..b9f78599 100644 --- a/.github/workflows/browser-e2e.yaml +++ b/.github/workflows/browser-e2e.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT name: Browser E2E on: pull_request: diff --git a/.github/workflows/examples-tests.yaml b/.github/workflows/examples-tests.yaml index 1791be42..298e5c29 100644 --- a/.github/workflows/examples-tests.yaml +++ b/.github/workflows/examples-tests.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT name: Examples Tests on: pull_request: @@ -16,4 +18,3 @@ jobs: uses: actions/checkout@v3 - name: test run: cd examples/pion-to-pion && ./test.sh - diff --git a/.github/workflows/standardjs.yaml b/.github/workflows/standardjs.yaml index 3211226c..dd46d9d3 100644 --- a/.github/workflows/standardjs.yaml +++ b/.github/workflows/standardjs.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT name: StandardJS on: pull_request: diff --git a/.reuse/dep5 b/.reuse/dep5 index ccc710a5..bfbf706d 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -2,6 +2,10 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Pion Source: https://github.com/pion/ -Files: README.md AUTHORS.txt renovate.json +Files: README.md DESIGN.md **/README.md AUTHORS.txt renovate.json go.mod go.sum package.json examples/examples.json .eslintrc.json Copyright: 2023 The Pion community License: MIT + +Files: testdata/fuzz/* **/testdata/fuzz/* api/*.txt +Copyright: 2023 The Pion community +License: CC0-1.0 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index ab602974..00000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENSE b/LICENSE new file mode 120000 index 00000000..31ff7879 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +LICENSES/MIT.txt \ No newline at end of file diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..2071b23b --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/api.go b/api.go index a26c917e..716be1f3 100644 --- a/api.go +++ b/api.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/api_js.go b/api_js.go index 3d81ed7b..fe94bff1 100644 --- a/api_js.go +++ b/api_js.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build js && wasm // +build js,wasm diff --git a/api_test.go b/api_test.go index d2de2809..3724fba9 100644 --- a/api_test.go +++ b/api_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/atomicbool.go b/atomicbool.go index bb6c26d2..cc6cdc1e 100644 --- a/atomicbool.go +++ b/atomicbool.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import "sync/atomic" diff --git a/bundlepolicy.go b/bundlepolicy.go index 6d39a277..ea6dad5a 100644 --- a/bundlepolicy.go +++ b/bundlepolicy.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/bundlepolicy_test.go b/bundlepolicy_test.go index 818b0853..747fb901 100644 --- a/bundlepolicy_test.go +++ b/bundlepolicy_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/certificate.go b/certificate.go index d034942f..1d5631bc 100644 --- a/certificate.go +++ b/certificate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/certificate_test.go b/certificate_test.go index 757fcfe0..a39e52e0 100644 --- a/certificate_test.go +++ b/certificate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/configuration.go b/configuration.go index 608c5ab7..90be318e 100644 --- a/configuration.go +++ b/configuration.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/configuration_common.go b/configuration_common.go index 92fc2283..a3acdf5b 100644 --- a/configuration_common.go +++ b/configuration_common.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import "strings" diff --git a/configuration_js.go b/configuration_js.go index 2ba4d268..097085f9 100644 --- a/configuration_js.go +++ b/configuration_js.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build js && wasm // +build js,wasm diff --git a/configuration_test.go b/configuration_test.go index f8f2bdcd..06fd35b3 100644 --- a/configuration_test.go +++ b/configuration_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/constants.go b/constants.go index 825601dd..cf868616 100644 --- a/constants.go +++ b/constants.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import "github.com/pion/dtls/v2" diff --git a/datachannel.go b/datachannel.go index 17277de3..9c9154c8 100644 --- a/datachannel.go +++ b/datachannel.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/datachannel_go_test.go b/datachannel_go_test.go index 9729967a..15cb6fb1 100644 --- a/datachannel_go_test.go +++ b/datachannel_go_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/datachannel_js.go b/datachannel_js.go index 55214b55..a34ab6ef 100644 --- a/datachannel_js.go +++ b/datachannel_js.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build js && wasm // +build js,wasm diff --git a/datachannel_js_detach.go b/datachannel_js_detach.go index 43186c5d..691e9d4c 100644 --- a/datachannel_js_detach.go +++ b/datachannel_js_detach.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build js && wasm // +build js,wasm diff --git a/datachannel_test.go b/datachannel_test.go index 98d60ae6..4c5ace45 100644 --- a/datachannel_test.go +++ b/datachannel_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/datachannelinit.go b/datachannelinit.go index a4320e46..b1775b7c 100644 --- a/datachannelinit.go +++ b/datachannelinit.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DataChannelInit can be used to configure properties of the underlying diff --git a/datachannelmessage.go b/datachannelmessage.go index 1e3c63b3..ba12199f 100644 --- a/datachannelmessage.go +++ b/datachannelmessage.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DataChannelMessage represents a message received from the diff --git a/datachannelparameters.go b/datachannelparameters.go index d67a63b0..9b4f7efc 100644 --- a/datachannelparameters.go +++ b/datachannelparameters.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DataChannelParameters describes the configuration of the DataChannel. diff --git a/datachannelstate.go b/datachannelstate.go index a2c7b95d..b2a85aae 100644 --- a/datachannelstate.go +++ b/datachannelstate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DataChannelState indicates the state of a data channel. diff --git a/datachannelstate_test.go b/datachannelstate_test.go index 780b3b2b..cb658a64 100644 --- a/datachannelstate_test.go +++ b/datachannelstate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/dtlsfingerprint.go b/dtlsfingerprint.go index db13d3ec..b0d06148 100644 --- a/dtlsfingerprint.go +++ b/dtlsfingerprint.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DTLSFingerprint specifies the hash function algorithm and certificate diff --git a/dtlsparameters.go b/dtlsparameters.go index 4b4b5683..1dfa42a2 100644 --- a/dtlsparameters.go +++ b/dtlsparameters.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DTLSParameters holds information relating to DTLS configuration. diff --git a/dtlsrole.go b/dtlsrole.go index 6e67f60e..9cee581d 100644 --- a/dtlsrole.go +++ b/dtlsrole.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/dtlsrole_test.go b/dtlsrole_test.go index 0e7ad343..0c9a5692 100644 --- a/dtlsrole_test.go +++ b/dtlsrole_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/dtlstransport.go b/dtlstransport.go index f92f72f1..10289c97 100644 --- a/dtlstransport.go +++ b/dtlstransport.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/dtlstransport_js.go b/dtlstransport_js.go index d4d8611e..bc3444e5 100644 --- a/dtlstransport_js.go +++ b/dtlstransport_js.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build js && wasm // +build js,wasm diff --git a/dtlstransport_test.go b/dtlstransport_test.go index 20ac73a2..a07da27b 100644 --- a/dtlstransport_test.go +++ b/dtlstransport_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/dtlstransportstate.go b/dtlstransportstate.go index 900b50b7..f986e22c 100644 --- a/dtlstransportstate.go +++ b/dtlstransportstate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc // DTLSTransportState indicates the DTLS transport establishment state. diff --git a/dtlstransportstate_test.go b/dtlstransportstate_test.go index f23ddad5..f5e61a41 100644 --- a/dtlstransportstate_test.go +++ b/dtlstransportstate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package webrtc import ( diff --git a/e2e/Dockerfile b/e2e/Dockerfile index c871222a..6e661b7c 100644 --- a/e2e/Dockerfile +++ b/e2e/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT + FROM golang:1.17-alpine3.13 RUN apk add --no-cache \ diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index c19fe39e..0e8ca40c 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build e2e // +build e2e diff --git a/e2e/test.html b/e2e/test.html index aaf9c6b2..5047bd07 100644 --- a/e2e/test.html +++ b/e2e/test.html @@ -1,3 +1,7 @@ +
Browser base64 Session Description

diff --git a/examples/simulcast/jsfiddle/demo.js b/examples/simulcast/jsfiddle/demo.js index b7fbc664..27ed76a9 100644 --- a/examples/simulcast/jsfiddle/demo.js +++ b/examples/simulcast/jsfiddle/demo.js @@ -1,5 +1,8 @@ /* eslint-env browser */ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Create peer conn const pc = new RTCPeerConnection({ iceServers: [{ diff --git a/examples/simulcast/main.go b/examples/simulcast/main.go index a75303ee..3a0d9e88 100644 --- a/examples/simulcast/main.go +++ b/examples/simulcast/main.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/examples/stats/main.go b/examples/stats/main.go index e95fa906..1a41d016 100644 --- a/examples/stats/main.go +++ b/examples/stats/main.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/examples/swap-tracks/jsfiddle/demo.css b/examples/swap-tracks/jsfiddle/demo.css index 9e43d340..78566e91 100644 --- a/examples/swap-tracks/jsfiddle/demo.css +++ b/examples/swap-tracks/jsfiddle/demo.css @@ -1,3 +1,7 @@ +/* + SPDX-FileCopyrightText: 2023 The Pion community + SPDX-License-Identifier: MIT +*/ textarea { width: 500px; min-height: 75px; diff --git a/examples/swap-tracks/jsfiddle/demo.details b/examples/swap-tracks/jsfiddle/demo.details index 9789dee5..dff4d025 100644 --- a/examples/swap-tracks/jsfiddle/demo.details +++ b/examples/swap-tracks/jsfiddle/demo.details @@ -1,5 +1,8 @@ --- - name: swap-tracks - description: Example of how to have Pion swap incoming tracks on a single outgoing track - authors: - - Chad Retz +# SPDX-FileCopyrightText: 2023 The Pion community +# SPDX-License-Identifier: MIT + +name: swap-tracks +description: Example of how to have Pion swap incoming tracks on a single outgoing track +authors: + - Chad Retz diff --git a/examples/swap-tracks/jsfiddle/demo.html b/examples/swap-tracks/jsfiddle/demo.html index 6fea3193..9c7ba408 100644 --- a/examples/swap-tracks/jsfiddle/demo.html +++ b/examples/swap-tracks/jsfiddle/demo.html @@ -1,3 +1,7 @@ + Browser base64 Session Description