8xFF / atm0s-media-server

Decentralized, Global-Scale Media Server written in Rust (WebRTC/Whip/Whep/Rtmp/Sip)
https://8xff.github.io/media-docs/
MIT License
211 stars 17 forks source link

feat: media record #329

Closed giangndm closed 1 month ago

giangndm commented 1 month ago

Pull Request

Description

This PR implement media record feature. The idea is each media server will first store it to memory then move it to disk if queue too back. We have some workers which will trying to ask Connector node for S3 upload link, then media server will upload direct to S3 storage with http client.

Checklist

Additional Notes

We have some incomplete:

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 17.86340% with 938 lines in your changes missing coverage. Please review.

Project coverage is 41.84%. Comparing base (a6e1d51) to head (fd65d71).

Files Patch % Lines
packages/media_record/src/storage/mod.rs 0.00% 90 Missing :warning:
packages/media_record/src/session.rs 0.00% 66 Missing :warning:
packages/media_record/src/worker.rs 0.00% 58 Missing :warning:
packages/media_record/bin/convert_webm.rs 0.00% 57 Missing :warning:
packages/media_record/src/lib.rs 0.00% 56 Missing :warning:
...ages/media_record/src/raw_record/session_reader.rs 0.00% 52 Missing :warning:
packages/media_record/src/media.rs 0.00% 48 Missing :warning:
...ckages/media_record/src/raw_record/chunk_reader.rs 0.00% 45 Missing :warning:
packages/media_record/src/media/vpx_demuxer.rs 0.00% 39 Missing :warning:
bin/src/server/media.rs 0.00% 37 Missing :warning:
... and 28 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #329 +/- ## ========================================== - Coverage 43.82% 41.84% -1.98% ========================================== Files 117 134 +17 Lines 12982 14044 +1062 ========================================== + Hits 5689 5877 +188 - Misses 7293 8167 +874 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.