Make repo REUSE compliant

This commit is contained in:
Steffen Vogel
2023-04-25 19:35:43 +02:00
committed by Sean DuBois
parent efffef2957
commit 683fc837d0
289 changed files with 937 additions and 67 deletions

View File

@@ -1,3 +1,6 @@
--- ---
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
exclude_paths: exclude_paths:
- examples/examples.json - examples/examples.json

3
.github/.ci.conf vendored
View File

@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
GO_JS_WASM_EXEC=${PWD}/test-wasm/go_js_wasm_exec GO_JS_WASM_EXEC=${PWD}/test-wasm/go_js_wasm_exec
TEST_EXTRA_ARGS="-tags quic" TEST_EXTRA_ARGS="-tags quic"
GOLANGCI_LINT_EXRA_ARGS="--build-tags quic" GOLANGCI_LINT_EXRA_ARGS="--build-tags quic"

View File

@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT

View File

@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
name: Browser E2E name: Browser E2E
on: on:
pull_request: pull_request:

View File

@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
name: Examples Tests name: Examples Tests
on: on:
pull_request: pull_request:
@@ -16,4 +18,3 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: test - name: test
run: cd examples/pion-to-pion && ./test.sh run: cd examples/pion-to-pion && ./test.sh

View File

@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
name: StandardJS name: StandardJS
on: on:
pull_request: pull_request:

View File

@@ -2,6 +2,10 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Pion Upstream-Name: Pion
Source: https://github.com/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 <https://pion.ly> Copyright: 2023 The Pion community <https://pion.ly>
License: MIT License: MIT
Files: testdata/fuzz/* **/testdata/fuzz/* api/*.txt
Copyright: 2023 The Pion community <https://pion.ly>
License: CC0-1.0

21
LICENSE
View File

@@ -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.

1
LICENSE Symbolic link
View File

@@ -0,0 +1 @@
LICENSES/MIT.txt

9
LICENSES/MIT.txt Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) <year> <copyright holders>
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.

3
api.go
View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import "sync/atomic" import "sync/atomic"

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import "strings" import "strings"

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import "github.com/pion/dtls/v2" import "github.com/pion/dtls/v2"

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DataChannelInit can be used to configure properties of the underlying // DataChannelInit can be used to configure properties of the underlying

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DataChannelMessage represents a message received from the // DataChannelMessage represents a message received from the

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DataChannelParameters describes the configuration of the DataChannel. // DataChannelParameters describes the configuration of the DataChannel.

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DataChannelState indicates the state of a data channel. // DataChannelState indicates the state of a data channel.

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DTLSFingerprint specifies the hash function algorithm and certificate // DTLSFingerprint specifies the hash function algorithm and certificate

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DTLSParameters holds information relating to DTLS configuration. // DTLSParameters holds information relating to DTLS configuration.

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
// DTLSTransportState indicates the DTLS transport establishment state. // DTLSTransportState indicates the DTLS transport establishment state.

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
FROM golang:1.17-alpine3.13 FROM golang:1.17-alpine3.13
RUN apk add --no-cache \ RUN apk add --no-cache \

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build e2e //go:build e2e
// +build e2e // +build e2e

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<div id="media"></div> <div id="media"></div>
<script> <script>

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package webrtc package webrtc
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,5 +1,8 @@
--- ---
name: broadcast # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
description: Example of a broadcast using Pion WebRTC # SPDX-License-Identifier: MIT
authors:
- Sean DuBois name: broadcast
description: Example of a broadcast using Pion WebRTC
authors:
- Sean DuBois

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<div id="signalingContainer" style="display: none"> <div id="signalingContainer" style="display: none">
Browser base64 Session Description<br /> Browser base64 Session Description<br />
<textarea id="localSessionDescription" readonly="true"></textarea> <br /> <textarea id="localSessionDescription" readonly="true"></textarea> <br />

View File

@@ -1,4 +1,8 @@
/* eslint-env browser */ /* eslint-env browser */
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
const log = msg => { const log = msg => {
document.getElementById('logs').innerHTML += msg + '<br>' document.getElementById('logs').innerHTML += msg + '<br>'
} }

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
Browser base64 Session Description<br /> Browser base64 Session Description<br />
<textarea id="localSessionDescription" readonly="true"></textarea> <br /> <textarea id="localSessionDescription" readonly="true"></textarea> <br />

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface. // data-channels-detach is an example that shows how you can detach a data channel. This allows direct access the the underlying [pion/datachannel](https://github.com/pion/datachannel). This allows you to interact with the data channel using a more idiomatic API based on the `io.ReadWriteCloser` interface.
package main package main

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// data-channels-flow-control demonstrates how to use the DataChannel congestion control APIs // data-channels-flow-control demonstrates how to use the DataChannel congestion control APIs
package main package main

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,5 +1,8 @@
--- ---
name: data-channels # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
description: Example of using Pion WebRTC to communicate with a web browser using bi-direction DataChannels # SPDX-License-Identifier: MIT
authors:
- Sean DuBois name: data-channels
description: Example of using Pion WebRTC to communicate with a web browser using bi-direction DataChannels
authors:
- Sean DuBois

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
Browser base64 Session Description<br /> Browser base64 Session Description<br />
<textarea id="localSessionDescription" readonly="true"></textarea> <br /> <textarea id="localSessionDescription" readonly="true"></textarea> <br />
<button onclick="window.copySDP()"> <button onclick="window.copySDP()">

View File

@@ -1,5 +1,8 @@
/* eslint-env browser */ /* eslint-env browser */
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
const pc = new RTCPeerConnection({ const pc = new RTCPeerConnection({
iceServers: [ iceServers: [
{ {

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build js && wasm //go:build js && wasm
// +build js,wasm // +build js,wasm

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// data-channels is a Pion WebRTC application that shows how you can send/recv DataChannel messages from a web browser // data-channels is a Pion WebRTC application that shows how you can send/recv DataChannel messages from a web browser
package main package main

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet">

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// HTTP server that demonstrates Pion WebRTC examples // HTTP server that demonstrates Pion WebRTC examples
package main package main

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<title>ice-restart</title> <title>ice-restart</title>
</head> </head>

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// ice-restart demonstrates Pion WebRTC's ICE Restart abilities. // ice-restart demonstrates Pion WebRTC's ICE Restart abilities.
package main package main

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<title>ice-single-port</title> <title>ice-single-port</title>
</head> </head>

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<title>ice-tcp</title> <title>ice-tcp</title>
</head> </head>

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet">

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,5 +1,8 @@
--- ---
name: play-from-disk # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
description: play-from-disk demonstrates how to send video to your browser from a file saved to disk. # SPDX-License-Identifier: MIT
authors:
- Sean DuBois name: play-from-disk
description: play-from-disk demonstrates how to send video to your browser from a file saved to disk.
authors:
- Sean DuBois

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<div id="no-support-banner" style="background-color: red"> <div id="no-support-banner" style="background-color: red">
<h1> Browser does not support insertable streams </h1> <h1> Browser does not support insertable streams </h1>
</div> </div>

View File

@@ -1,5 +1,8 @@
/* eslint-env browser */ /* eslint-env browser */
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// cipherKey that video is encrypted with // cipherKey that video is encrypted with
const cipherKey = 0xAA const cipherKey = 0xAA

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package signal package signal
import ( import (

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package signal package signal
import "github.com/pion/randutil" import "github.com/pion/randutil"

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// Package signal contains helpers to exchange the SDP session // Package signal contains helpers to exchange the SDP session
// description between examples. // description between examples.
package signal package signal

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
FROM golang:1.20 FROM golang:1.20
ENV GO111MODULE=on ENV GO111MODULE=on

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// pion-to-pion is an example of two pion instances communicating directly! // pion-to-pion is an example of two pion instances communicating directly!
package main package main

View File

@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
version: '3' version: '3'
services: services:
answer: answer:

View File

@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
FROM golang:1.20 FROM golang:1.20
ENV GO111MODULE=on ENV GO111MODULE=on

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// pion-to-pion is an example of two pion instances communicating directly! // pion-to-pion is an example of two pion instances communicating directly!
package main package main

View File

@@ -1,5 +1,8 @@
#!/bin/bash -eu #!/bin/bash -eu
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
docker compose up -d docker compose up -d
function on_exit { function on_exit {

View File

@@ -1,4 +1,8 @@
<html> <html>
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
<head> <head>
<title>play-from-disk-renegotation</title> <title>play-from-disk-renegotation</title>
</head> </head>

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,5 +1,8 @@
--- ---
name: play-from-disk # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
description: play-from-disk demonstrates how to send video to your browser from a file saved to disk. # SPDX-License-Identifier: MIT
authors:
- Sean DuBois name: play-from-disk
description: play-from-disk demonstrates how to send video to your browser from a file saved to disk.
authors:
- Sean DuBois

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
Browser Session Description Browser Session Description
<br/> <br/>
<textarea id="localSessionDescription" readonly="true"></textarea> <textarea id="localSessionDescription" readonly="true"></textarea>

View File

@@ -1,5 +1,8 @@
/* eslint-env browser */ /* eslint-env browser */
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
const pc = new RTCPeerConnection({ const pc = new RTCPeerConnection({
iceServers: [{ iceServers: [{
urls: 'stun:stun.l.google.com:19302' urls: 'stun:stun.l.google.com:19302'

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

View File

@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
*/
textarea { textarea {
width: 500px; width: 500px;
min-height: 75px; min-height: 75px;

View File

@@ -1,5 +1,8 @@
--- ---
name: reflect # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
description: Example of how to have Pion send back to the user exactly what it receives using the same PeerConnection. # SPDX-License-Identifier: MIT
authors:
- Sean DuBois name: reflect
description: Example of how to have Pion send back to the user exactly what it receives using the same PeerConnection.
authors:
- Sean DuBois

View File

@@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
SPDX-License-Identifier: MIT
-->
Browser base64 Session Description<br /> Browser base64 Session Description<br />
<textarea id="localSessionDescription" readonly="true"></textarea> <br /> <textarea id="localSessionDescription" readonly="true"></textarea> <br />
<button onclick="window.copySDP()"> <button onclick="window.copySDP()">

View File

@@ -1,5 +1,8 @@
/* eslint-env browser */ /* eslint-env browser */
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
const pc = new RTCPeerConnection({ const pc = new RTCPeerConnection({
iceServers: [ iceServers: [
{ {

View File

@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
//go:build !js //go:build !js
// +build !js // +build !js

Some files were not shown because too many files have changed in this diff Show More