diff --git a/.codacy.yaml b/.codacy.yaml index a8c225b74b8..aa0b11b3914 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 771f57c8cc5..59a10be3bca 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 00000000000..40eb56b1dfc --- /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 b45f63710c1..b9f78599a03 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 1791be42e49..298e5c29f9d 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 3211226cd3d..dd46d9d3438 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 ccc710a50bc..bfbf706d0fa 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 ab602974d20..00000000000 --- 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 00000000000..31ff78791ee --- /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 00000000000..2071b23b0e0 --- /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 a26c917ee73..716be1f380e 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 3d81ed7b149..fe94bff1fb1 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 d2de28094bf..3724fba9c32 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 bb6c26d2cfb..cc6cdc1e847 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 6d39a2773df..ea6dad5aeb0 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 818b0853d0b..747fb901d71 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 d034942f975..1d5631bc489 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 757fcfe0e38..a39e52e0f34 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 608c5ab7e01..90be318e9ea 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 92fc228310b..a3acdf5b81f 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 2ba4d268e33..097085f9b68 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 f8f2bdcd388..06fd35b33c6 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 825601ddb6b..cf868616336 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 17277de356f..9c9154c8cf2 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 9729967ad89..15cb6fb11cb 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 55214b55165..a34ab6efde5 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 43186c5db1e..691e9d4c76d 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 98d60ae623c..4c5ace45c84 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 a4320e46355..b1775b7c5a8 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 1e3c63b363c..ba12199f453 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 d67a63b09a1..9b4f7efcc9f 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 a2c7b95de30..b2a85aaeb53 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 780b3b2be60..cb658a64e13 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 db13d3ec648..b0d061481aa 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 4b4b56836fe..1dfa42a223d 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 6e67f60e1e8..9cee581d9ec 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 0e7ad34384e..0c9a5692627 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 f92f72f1420..10289c97f4b 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 d4d8611ef77..bc3444e5686 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 20ac73a2e5f..a07da27b83d 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 900b50b750b..f986e22cbbd 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 f23ddad508a..f5e61a410a5 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 c871222afb7..6e661b7cddb 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 c19fe39e068..0e8ca40c3cb 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 aaf9c6b23e7..5047bd07be8 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 b7fbc664925..27ed76a9e43 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 a75303ee0da..3a0d9e881c8 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 e95fa906b25..1a41d016aaa 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 9e43d340755..78566e91f58 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 9789dee59a6..dff4d025742 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 6fea3193bc0..9c7ba4082fc 100644 --- a/examples/swap-tracks/jsfiddle/demo.html +++ b/examples/swap-tracks/jsfiddle/demo.html @@ -1,3 +1,7 @@ + Browser base64 Session Description