Commit Graph

355 Commits

Author SHA1 Message Date
Aleksandr Alekseev
08d015e056 ConfigureFlexFEC03 helper and fec example 2025-05-26 23:27:04 +03:00
Dailor
0fa49227e7 Remove inaccurate comments 2025-04-19 17:13:17 +02:00
Anton
39908b9b96 Fix pion2pion example readme 2025-04-02 14:35:49 +02:00
Joe Turki
98a0025083 Add support for AV1 and VP9 to play from disk 2025-03-02 10:26:32 +02:00
Joe Turki
38fdb70355 Fix save to disk examples 2025-03-01 22:52:56 +02:00
renovate[bot]
ee669ca89d Update golang Docker tag to v1.24
Generated by renovateBot
2025-02-12 16:09:04 -05:00
Kevin Wang
bea7ae3745 Add ivfwriter support for VP9
Adds the necessary wiring to get VP9 to work with `ivfwriter`.
Update the README of save-to-disk to inform users it supports
both VP8 and VP9.
    
ivfwriter currently assumes 30 fps but it seems that the other codecs
also assume 30 fps so that is not a net-new assumption.
2025-02-12 16:06:41 -05:00
WofWca
4ee374714a Implement DataChannel OnError/OnClosing for WASM
`OnClosing` is only implemented in WASM at this time.

`OnError` isn't tested, but should work as follows the existing
code.

Relates to #479 
Relates to #519
2025-02-11 12:39:56 -05:00
Joe Turki
feeeebf251 Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 07:16:06 -06:00
Xavier Drudis
92d573c35b Fix broken links in save-to-disk examples 2025-01-01 23:32:10 -05:00
Yang Hau
dca5d743cf Fix bandwidth-estimation-from-disk timestamping
Set the frameHeader when reading the file so the currentTimestamp
actually gets set
2024-12-26 23:36:56 -05:00
Sean DuBois
3147b45f9d Improve examples/stats
Add PeerConnection.GetStats() call with a Type Switch
2024-08-26 16:14:11 -04:00
renovate[bot]
4a97b7d67e Update golang Docker tag to v1.23
Generated by renovateBot
2024-08-16 18:50:27 -04:00
Pion
752e442994 Update CI configs to v0.11.15
Update lint scripts and CI configs.
2024-08-16 14:13:11 -04:00
Tristan Matthews
d54f7870eb Only send PLIs for video tracks in examples 2024-08-15 19:15:04 -04:00
Sean DuBois
3aab0355e0 Upgrade dtls, ice, stun and turn
New major version of all packages caused by DTLS upgrade
2024-08-12 13:45:35 -04:00
Juliusz Chroboczek
f29ef99b22 Avoid leaking tickers
In Go 1.22 and earlier, a ticker needs to be explicitly stopped
when it's no longer useful in order to avoid a resource leak.
In Go 1.23 and later, an orphaned ticker will eventually be
garbage collected, but it's still more thrifty to stop it early.
2024-08-01 14:35:24 -04:00
AfonsoVi
35b3ae1bb5 Change time.Sleep to time.Ticker in the examples 2024-07-28 22:31:32 -04:00
Sean DuBois
8780e68cb7 Add nolint to examples
Ignore err from Fprintf
2024-07-18 15:40:11 -04:00
Sean DuBois
ce37669dda Delete deadcode in pion-to-pion/answer
Was accidentally copied, never needed
2024-07-18 15:21:46 -04:00
Sean DuBois
09461d55a6 Remove examples/internal
Users find it frustrating that example code doesn't work out of tree.
This makes copying the examples out of the repo easier.

Relates to #1981
2024-05-20 10:54:16 -04:00
knowmost
a97c420d0c Fix typos in multiple comments 2024-04-27 23:27:55 -04:00
cnderrauber
a9e88d2531 Add recvonly transceiver for simulcast video
Fix one of the layers can't send back video because
the transceiver is used for receiving.
2024-04-22 13:29:49 +08:00
hongkuang
bd25613af2 Fix typos across the project 2024-04-07 21:48:29 -04:00
Sean DuBois
1d451b568c Update go.mod version to 1.19
Relates to pion/webrtc#2292
2024-04-02 22:54:57 -04:00
Stephan Rotolante
a8c02b0879 Add examples/whip-whep
Create WHIP/WHEP example works with OBS or browser

Resolves #2499
2024-03-24 20:24:32 -04:00
pengqiseven
94ac7794eb Fix gramatical errors in comments
Removes repetitive words
2024-03-16 21:15:04 -04:00
Sean DuBois
fda6c4f836 Fix linter errors
golangci-lint upgrade to v1.56.2 added more checks

Relates to pion/.goassets#201
2024-03-16 21:09:38 -04:00
renovate[bot]
384d7d872c Update golang Docker tag to v1.22
Generated by renovateBot
2024-02-08 13:52:21 +00:00
Sean DuBois
e409a1d9cc Add ORTC Media examples
Resolves #379
2023-09-17 00:11:53 -04:00
Sean DuBois
9eded4ee7a Fix ORTC example
README didn't describe how to get signaling into client 1

Relates to #379
2023-09-16 14:35:41 -04:00
Sean DuBois
34fe40e38b Remove deprecated APIs
Delete everything that was marked as deprecated
2023-09-14 14:15:40 -04:00
Sean DuBois
b549c9580d Enable Simulcast RTP Headers by default
Relates to #2557
2023-09-13 12:38:26 -04:00
WofWca
045f9f69fa Fix potential deadlock in example
At the current state of the code the deadlock is not achievable,
but if 'bufferedAmountLowThreshold' and 'maxBufferedAmount' were to
get changed up, it could happen.
Example: If 'bufferedAmountLowThreshold = 1024',
'maxBufferedAmount = 1280', then if a message of len 999 is sent,
'BufferedAmount()' could return '999', and the condition would still
evaluate to 'true' (999 + 999 > 1280).
Since 'bufferedAmountLowThreshold' was never exceeded, the
'OnBufferedAmountLow' event would never fire, so we're stuck.
2023-09-11 19:02:09 -04:00
Sean DuBois
f66b8b6ce2 Update examples to handle going to Closed
Relates to #1767
2023-09-08 16:20:12 -04:00
Sean DuBois
bbf51266ad Remove $GOPATH from documentation
Project layout is flexible now with modules
2023-09-05 13:51:09 -04:00
Sean DuBois
50301ea73c Update docs to use go install
`go get` is not a supported method to install binaries anymore
2023-09-05 13:17:23 -04:00
Sean DuBois
5aa5fac6ea Remove GO111MODULE from docs 2023-09-05 11:48:14 -04:00
Sean DuBois
dc4b591c4d Start pion/webrtc/v4
60eea43 is a breaking change
2023-09-05 11:48:14 -04:00
renovate[bot]
ea23dec2b9 Update module transport, srtp, ice and turn
ReplayDetector introduced a breaking change
2023-09-03 23:59:43 -04:00
Hao
1390b16097 Fix typo 'Renegotation' across project
'Renegotation' -> 'Renegotiation'
2023-08-24 14:14:29 -04:00
renovate[bot]
cedd45fc3b Update golang Docker tag to v1.21
Generated by renovateBot
2023-08-17 20:26:37 +00:00
Sean DuBois
90e3a83b57 Add support to AV1 in play-from-disk
Resolves pion/rtp#190
Resolves pion/rtp#191
2023-07-20 19:42:44 -04:00
Kunal
4f1d46fe0d Improvement to rtp-to-webrtc example 2023-06-07 15:06:16 -04:00
Steffen Vogel
683fc837d0 Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
Sean DuBois
2bf94861c0 Add examples/stats
Example demonstrates how to use the new webrtc-stats interceptor
2023-04-26 13:33:24 -04:00
Sean DuBois
03c83a178c Use new intervalpli interceptor in examples
Instead of manually spawning a goroutine this demonstrates how an
interceptor can be useful.

Co-authored-by: Antoine Baché <antoine@tenten.app>
2023-04-25 22:25:56 -04:00
Pion
308f8616a3 Update CI configs to v0.10.6
Update lint scripts and CI configs.
2023-04-08 14:24:19 -04:00
Yutaka Takeda
b6191eb14b Fix potential deadlock in the example
Use bufferred channel (size 1) with select{} on write to avoid potential
deadlock
2023-03-26 23:39:32 -04:00
mohammadne
fba48cda24 Add Mermaid Chart to examples/data-channels
Start new architecture section
2023-02-11 00:48:47 -05:00