Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support publishing, reading, proxying with SRT #2068

Merged
merged 4 commits into from
Jul 31, 2023
Merged

support publishing, reading, proxying with SRT #2068

merged 4 commits into from
Jul 31, 2023

Conversation

aler9
Copy link
Member

@aler9 aler9 commented Jul 17, 2023

Fixes #563

TODO

  • support publishing with SRT
  • support reading with SRT
  • support proxying SRT
  • support authentication
  • test on Windows
  • add API
  • add tests
  • update README

How to use

publish:

srt://localhost:8890?streamid=publish:path_name:user:pass&pkt_size=1316

read:

srt://localhost:8890?streamid=read:path_name:user:pass

proxy:

paths:
  mystream:
    source: srt://ip-of-camera:port?pkt_size=1316

@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #2068 (1c71ba5) into main (d696a78) will decrease coverage by 0.50%.
The diff coverage is 55.70%.

@@            Coverage Diff             @@
##             main    #2068      +/-   ##
==========================================
- Coverage   62.37%   61.88%   -0.50%     
==========================================
  Files         104      108       +4     
  Lines       11372    12422    +1050     
==========================================
+ Hits         7093     7687     +594     
- Misses       3774     4199     +425     
- Partials      505      536      +31     
Files Changed Coverage Δ
internal/conf/path.go 25.11% <0.00%> (-1.08%) ⬇️
internal/core/authentication.go 81.63% <ø> (ø)
internal/core/rtmp_conn.go 61.18% <0.00%> (-0.12%) ⬇️
internal/core/webrtc_manager.go 62.23% <ø> (ø)
internal/core/srt_conn.go 46.67% <46.67%> (ø)
internal/core/srt_source.go 47.16% <47.16%> (ø)
internal/core/api.go 62.38% <55.55%> (-0.50%) ⬇️
internal/core/srt_listener.go 83.33% <83.33%> (ø)
internal/core/srt_server.go 86.82% <86.82%> (ø)
internal/core/core.go 84.33% <90.00%> (+0.28%) ⬆️
... and 2 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@aler9 aler9 force-pushed the feature/srt branch 9 times, most recently from cda2483 to 8cb3384 Compare July 25, 2023 12:47
@aler9 aler9 force-pushed the feature/srt branch 12 times, most recently from 7cd7873 to b5ad046 Compare July 30, 2023 20:16
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
@aler9 aler9 force-pushed the feature/srt branch 2 times, most recently from 51c9c5b to ea9b878 Compare July 30, 2023 20:43
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
@aler9 aler9 force-pushed the feature/srt branch 2 times, most recently from 01c1e1d to 416204d Compare July 30, 2023 21:46
aler9 added a commit that referenced this pull request Jul 30, 2023
aler9 added a commit that referenced this pull request Jul 30, 2023
@aler9 aler9 force-pushed the feature/srt branch 3 times, most recently from 25185ed to 4c3ac00 Compare July 31, 2023 17:08
add rtmp.Writer, rtmp.Reader

update readme

update dependencies

fix a/v sync

add authentication

add missing line

return an error in case the random number generator fails
@aler9 aler9 force-pushed the feature/srt branch 2 times, most recently from eddc15d to a8b6a49 Compare July 31, 2023 19:06
@aler9 aler9 merged commit b4e3033 into main Jul 31, 2023
6 of 8 checks passed
@aler9 aler9 deleted the feature/srt branch July 31, 2023 19:20
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SRT
1 participant