Skip to content

Add WithRTPTimestamp to set initial RTP timestamp #3112

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

Merged
merged 1 commit into from
Apr 27, 2025

Conversation

JoeTurki
Copy link
Member

Description

Move to the new RTP API newPacketizerWithOptions, add WithRTPTimestamp To make it possible to set the initial RTP timestamp for the track.

Reference issue

Fixes pion/rtp#111

@@ -69,6 +70,13 @@ func WithPayloader(h func(RTPCodecCapability) (rtp.Payloader, error)) func(*Trac
}
}

// WithRTPTimestamp set the initial RTP timestamp for the track.
func WithRTPTimestamp(timestamp uint32) func(*TrackLocalStaticRTP) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the name!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name sounds good to me! I know exactly what it does and I can google 'RTP Timestamp' if I am confused :)

@JoeTurki JoeTurki requested a review from Sean-Der April 26, 2025 22:51
Copy link

codecov bot commented Apr 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.77%. Comparing base (ac1a132) to head (d6154f6).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3112      +/-   ##
==========================================
+ Coverage   78.72%   78.77%   +0.05%     
==========================================
  Files          91       91              
  Lines       11373    11383      +10     
==========================================
+ Hits         8953     8967      +14     
+ Misses       1933     1932       -1     
+ Partials      487      484       -3     
Flag Coverage Δ
go 80.67% <100.00%> (+0.05%) ⬆️
wasm 63.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JoeTurki JoeTurki force-pushed the with-rtp-timestamp branch from e4edd96 to 1d080a4 Compare April 26, 2025 23:03
Move to the new RTP API newPacketizerWithOptions, add WithRTPTimestamp
To make it possible to set the initial RTP timestamp for the track.
@JoeTurki JoeTurki force-pushed the with-rtp-timestamp branch from 1d080a4 to d6154f6 Compare April 26, 2025 23:08
@JoeTurki JoeTurki added this to the V4.1.0 milestone Apr 27, 2025
@JoeTurki JoeTurki merged commit d6154f6 into master Apr 27, 2025
18 checks passed
@JoeTurki JoeTurki deleted the with-rtp-timestamp branch April 27, 2025 04:37
Copy link

@sylwek78 sylwek78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Allow the ability to define the initial timestamp for the packetizer.
3 participants