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

feat: gateway and refactor media-server #106

Conversation

giangndm
Copy link
Contributor

@giangndm giangndm commented Dec 9, 2023

This pull request changes:

  • Added gateway, rpc

  • Refactor to single media-server with multiple protocols:

    • webrtc
    • rtmp
    • sip

packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
packages/cluster/src/define/rpc.rs Fixed Show fixed Hide fixed
}

pub fn parse_conn_id(conn_id: &str) -> Option<(NodeId, u64)> {
let parts = conn_id.split(':').into_iter().collect::<Vec<_>>();

Check warning

Code scanning / clippy

useless conversion to the same type: std::str::Split<'_, char> Warning

useless conversion to the same type: std::str::Split<'_, char>

pub fn parse_conn_id(conn_id: &str) -> Option<(NodeId, u64)> {
let parts = conn_id.split(':').into_iter().collect::<Vec<_>>();
let node_id = parts.get(0)?.parse().ok()?;

Check warning

Code scanning / clippy

accessing first element with parts.get(0) Warning

accessing first element with parts.get(0)
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 1439 lines in your changes are missing coverage. Please review.

Comparison is base (f082bfa) 54.58% compared to head (c6bd8f8) 48.56%.

Files Patch % Lines
servers/media-server/src/server/webrtc.rs 0.00% 264 Missing ⚠️
servers/media-server/src/server/gateway.rs 0.00% 175 Missing ⚠️
...ervers/media-server/src/server/gateway/rpc/http.rs 0.00% 171 Missing ⚠️
servers/media-server/src/server/webrtc/rpc/http.rs 0.00% 171 Missing ⚠️
servers/media-server/src/server/rtmp.rs 0.00% 116 Missing ⚠️
servers/media-server/src/server/rtmp/session.rs 0.00% 72 Missing ⚠️
servers/media-server/src/server.rs 0.00% 66 Missing ⚠️
packages/cluster/src/implement/rpc.rs 0.00% 60 Missing ⚠️
...vers/media-server/src/server/webrtc/rpc/cluster.rs 0.00% 44 Missing ⚠️
servers/media-server/src/server/rtmp/server_tcp.rs 0.00% 41 Missing ⚠️
... and 31 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   54.58%   48.56%   -6.03%     
==========================================
  Files         106      124      +18     
  Lines        9570    10212     +642     
==========================================
- Hits         5224     4959     -265     
- Misses       4346     5253     +907     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@giangndm giangndm marked this pull request as ready for review December 13, 2023 08:24
@giangndm giangndm merged commit 9100f65 into 8xFF:master Dec 13, 2023
7 of 9 checks passed
@giangndm giangndm mentioned this pull request Dec 13, 2023
33 tasks
@github-actions github-actions bot mentioned this pull request Nov 29, 2023
@github-actions github-actions bot mentioned this pull request Dec 20, 2023
@giangndm giangndm deleted the 33-implement-gateway-for-routing-api-to-best-media-node branch June 6, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant